mirror of
https://github.com/Derisis13/dotfiles.git
synced 2026-09-16 10:00:51 +02:00
fix(nvim): remove broken folding statement
This commit is contained in:
@@ -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 = {
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user