fix(nvim): remove broken folding statement

This commit is contained in:
László Párkányi
2026-08-04 23:23:25 +02:00
parent 819d0ba9ad
commit 402838b1e2
2 changed files with 2 additions and 18 deletions

View File

@@ -6,22 +6,6 @@ local autocmd = vim.api.nvim_create_autocmd
-- command = "tabdo wincmd =",
-- })
autocmd({ "FileType" }, {
callback = function()
-- check if treesitter has parser
if require("nvim-treesitter.parsers").has_parser() then
-- use treesitter folding
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
else
-- use alternative foldmethod
vim.opt.foldmethod = "syntax"
end
end,
})
-- disable folding on startup
vim.opt.foldenable = false