Changed the defualt fold level to fold from ## when opeining a file.
This commit is contained in:
parent
29497a5a6f
commit
81408e79d2
1 changed files with 1 additions and 1 deletions
2
init.lua
2
init.lua
|
|
@ -22,7 +22,7 @@ vim.api.nvim_create_autocmd("FileType", {
|
||||||
callback = function()
|
callback = function()
|
||||||
vim.wo.foldmethod = "expr"
|
vim.wo.foldmethod = "expr"
|
||||||
vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()" -- This is the magic line
|
vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()" -- This is the magic line
|
||||||
vim.wo.foldlevel = 2 -- tweak if you want deeper levels open by default
|
vim.wo.foldlevel = 1 -- tweak if you want deeper levels open by default
|
||||||
vim.wo.foldcolumn = "1"
|
vim.wo.foldcolumn = "1"
|
||||||
vim.wo.spell = true
|
vim.wo.spell = true
|
||||||
vim.bo.spelllang = "en_us"
|
vim.bo.spelllang = "en_us"
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue