chore(nvim): use treesitter fold setlocal
See: - https://github.com/nvim-treesitter/nvim-treesitter/issues/194 - https://github.com/neovim/neovim/issues/14670main
parent
df338cfc02
commit
7e62c9d5a3
|
@ -370,9 +370,9 @@ require("lazy").setup({
|
|||
":TSUpdate",
|
||||
},
|
||||
init = function()
|
||||
vim.opt.foldmethod = "expr"
|
||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.opt.foldenable = false
|
||||
vim.opt_local.foldmethod = "expr"
|
||||
vim.opt_local.foldexpr = "nvim_treesitter#foldexpr()"
|
||||
vim.opt_local.foldenable = false
|
||||
end,
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup({
|
||||
|
|
Loading…
Reference in New Issue