default to treesitter foldexpr
This commit is contained in:
parent
b1e951ef1d
commit
0563865360
4
init.lua
4
init.lua
|
@ -38,7 +38,9 @@ vim.opt.whichwrap = "b,s,<,>,[,],h,l"
|
||||||
|
|
||||||
vim.opt.timeout = false
|
vim.opt.timeout = false
|
||||||
|
|
||||||
vim.opt.foldenable = false
|
vim.opt.foldmethod = "expr"
|
||||||
|
vim.opt.foldlevel = 99
|
||||||
|
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
|
|
||||||
vim.opt.diffopt:append("vertical")
|
vim.opt.diffopt:append("vertical")
|
||||||
vim.opt.diffopt:append("linematch:50")
|
vim.opt.diffopt:append("linematch:50")
|
||||||
|
|
|
@ -30,8 +30,4 @@ return {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
init = function()
|
|
||||||
-- If you want the formatexpr, here is the place to set it
|
|
||||||
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
|
|
||||||
end,
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue