mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 09:18:44 +02:00
add: update config nvim ufo
This commit is contained in:
parent
ebdbf34d82
commit
78364c3636
3 changed files with 11 additions and 4 deletions
|
@ -18,7 +18,7 @@ return {
|
||||||
segments = {
|
segments = {
|
||||||
{ text = { "%s" }, click = "v:lua.ScSa" },
|
{ text = { "%s" }, click = "v:lua.ScSa" },
|
||||||
{
|
{
|
||||||
text = { builtin.foldfunc },
|
text = { builtin.foldfunc, " " },
|
||||||
condition = { builtin.not_empty, true, builtin.not_empty },
|
condition = { builtin.not_empty, true, builtin.not_empty },
|
||||||
click = "v:lua.ScFa",
|
click = "v:lua.ScFa",
|
||||||
},
|
},
|
||||||
|
@ -37,12 +37,15 @@ return {
|
||||||
vim.o.foldlevelstart = 99
|
vim.o.foldlevelstart = 99
|
||||||
vim.o.foldenable = true
|
vim.o.foldenable = true
|
||||||
-- vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
|
-- vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
|
||||||
vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
|
-- vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]]
|
||||||
|
-- vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep:│,foldclose:]]
|
||||||
|
-- vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep:│,foldclose:]]
|
||||||
|
vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep:│,foldclose:]]
|
||||||
-- 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"))
|
vim.cmd("highlight FoldColumn guifg=" .. vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("Comment")), "fg"))
|
||||||
|
-- vim.cmd("highlight FoldColumn guifg=" .. vim.fn.synIDattr(vim.fn.synIDtrans(vim.fn.hlID("IblIndent")), "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()`
|
||||||
|
|
|
@ -458,6 +458,9 @@ return {
|
||||||
-- Visual = { bg = "$orange" },
|
-- Visual = { bg = "$orange" },
|
||||||
DiffText = { bg = "$orange" },
|
DiffText = { bg = "$orange" },
|
||||||
DiffAdd = { bg = "#595d65" },
|
DiffAdd = { bg = "#595d65" },
|
||||||
|
-- UfoPreviewNormal = { fg = "#373d48", bg = "$bg0" },
|
||||||
|
-- UfoPreviewBorder = { fg = "#373d48", bg = "$bg0" },
|
||||||
|
-- UfoPreviewCursorLine = { fg = "#373d48", bg = "$bg0" },
|
||||||
},
|
},
|
||||||
transparent = transparent,
|
transparent = transparent,
|
||||||
lualine = {
|
lualine = {
|
||||||
|
|
|
@ -142,7 +142,8 @@ nvim_tree.setup({
|
||||||
},
|
},
|
||||||
git = {
|
git = {
|
||||||
deleted = icons.git.FileDeleted,
|
deleted = icons.git.FileDeleted,
|
||||||
ignored = icons.git.FileIgnored,
|
-- ignored = icons.git.FileIgnored,
|
||||||
|
ignored = "",
|
||||||
renamed = icons.git.FileRenamed,
|
renamed = icons.git.FileRenamed,
|
||||||
staged = icons.git.FileStaged,
|
staged = icons.git.FileStaged,
|
||||||
unmerged = icons.git.FileUnmerged,
|
unmerged = icons.git.FileUnmerged,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue