mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 11:24:55 +02:00
nvim: ui: install nvim-ufo and statuscol.nvim for better folds and status column.
This commit is contained in:
parent
112b646bd4
commit
17676d62b9
2 changed files with 75 additions and 0 deletions
|
|
@ -19,6 +19,50 @@ return {
|
|||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
'kevinhwang91/nvim-ufo',
|
||||
dependencies = {
|
||||
'kevinhwang91/promise-async',
|
||||
},
|
||||
opts = {
|
||||
fold_virt_text_handler = require("user.utils.ufo").foldtext
|
||||
}
|
||||
},
|
||||
{
|
||||
"luukvbaal/statuscol.nvim",
|
||||
opts = function()
|
||||
local builtin = require("statuscol.builtin")
|
||||
return {
|
||||
-- Align current relative number to the right.
|
||||
relculright = true,
|
||||
segments = {
|
||||
{
|
||||
click = "v:lua.ScSa",
|
||||
sign = {
|
||||
namespace = { "gitsigns" },
|
||||
maxwidth = 1,
|
||||
colwidth = 1,
|
||||
}
|
||||
},
|
||||
{
|
||||
click = "v:lua.ScSa",
|
||||
sign = {
|
||||
namespace = { "diagnostic/signs" },
|
||||
maxwidth = 1,
|
||||
colwidth = 3,
|
||||
-- auto = true,
|
||||
}
|
||||
},
|
||||
{
|
||||
text = { builtin.lnumfunc, " " },
|
||||
click = "v:lua.ScLa",
|
||||
},
|
||||
{ text = { builtin.foldfunc, " " }, click = "v:lua.ScFa" },
|
||||
{ text = { "│ " } },
|
||||
}
|
||||
}
|
||||
end,
|
||||
},
|
||||
-- File explorer
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue