fix: do not auto fold when opening buffers
This commit is contained in:
@@ -21,6 +21,8 @@ vim.opt.expandtab = true
|
|||||||
vim.opt.shiftwidth = 4
|
vim.opt.shiftwidth = 4
|
||||||
vim.opt.smarttab = false
|
vim.opt.smarttab = false
|
||||||
-- Folds are configured in nvim-treesitter, so this is only for fallback
|
-- Folds are configured in nvim-treesitter, so this is only for fallback
|
||||||
|
vim.opt.foldenable = false
|
||||||
|
vim.opt.foldlevel = 99
|
||||||
vim.opt.foldlevelstart = 99
|
vim.opt.foldlevelstart = 99
|
||||||
vim.opt.foldmethod = "indent"
|
vim.opt.foldmethod = "indent"
|
||||||
vim.opt.foldignore = ""
|
vim.opt.foldignore = ""
|
||||||
|
|||||||
@@ -34,7 +34,6 @@ return {
|
|||||||
|
|
||||||
vim.opt.foldmethod = "expr"
|
vim.opt.foldmethod = "expr"
|
||||||
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
|
||||||
vim.opt.foldenable = true
|
|
||||||
|
|
||||||
-- Disable LSP semantic highlighting for comments because it will otherwise
|
-- Disable LSP semantic highlighting for comments because it will otherwise
|
||||||
-- override highlights from `comment`.
|
-- override highlights from `comment`.
|
||||||
|
|||||||
Reference in New Issue
Block a user