Skip to content

Commit

Permalink
chore(nvim): use treesitter fold setlocal
Browse files Browse the repository at this point in the history
  • Loading branch information
haunt98 committed Oct 28, 2023
1 parent df338cf commit 7e62c9d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions data/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down

0 comments on commit 7e62c9d

Please sign in to comment.