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

@@ -1,7 +1,7 @@
local options = {
base46 = {
theme = "chadracula-evondev", -- default theme
theme = "eldritch", -- default theme
hl_add = {},
hl_override = {},
integrations = {},
@@ -11,7 +11,7 @@ local options = {
},
},
transparency = true,
theme_toggle = { "chadracula-evondev", "one_light" },
theme_toggle = { "eldritch", "one_light" },
},
ui = {

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