mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-21 16:39:04 +02:00
add: update config ufo
This commit is contained in:
parent
cd9dcc6c26
commit
5518885b31
1 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
event = "BufRead",
|
event = "BufReadPost",
|
||||||
config = function()
|
config = function()
|
||||||
vim.o.foldcolumn = "1" -- '0' is not bad
|
vim.o.foldcolumn = "1" -- '0' is not bad
|
||||||
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
|
vim.o.foldlevel = 99 -- Using ufo provider need a large value, feel free to decrease the value
|
||||||
|
@ -28,7 +28,7 @@ return {
|
||||||
-- these are "extra", change them as you like
|
-- these are "extra", change them as you like
|
||||||
vim.keymap.set("n", "zR", require("ufo").openAllFolds)
|
vim.keymap.set("n", "zR", require("ufo").openAllFolds)
|
||||||
vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
|
vim.keymap.set("n", "zM", require("ufo").closeAllFolds)
|
||||||
|
vim.cmd("highlight FoldColumn guifg=" .. vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("Comment")), "fg"))
|
||||||
-- Option 3: treesitter as a main provider instead
|
-- Option 3: treesitter as a main provider instead
|
||||||
-- Only depend on `nvim-treesitter/queries/filetype/folds.scm`,
|
-- Only depend on `nvim-treesitter/queries/filetype/folds.scm`,
|
||||||
-- performance and stability are better than `foldmethod=nvim_treesitter#foldexpr()`
|
-- performance and stability are better than `foldmethod=nvim_treesitter#foldexpr()`
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue