mirror of
https://github.com/pnx/dotfiles
synced 2026-07-03 15:03:40 +02:00
nvim: move nvim-ufo and statuscol.nvim from ui file to editor.
This commit is contained in:
parent
9e0ba8464d
commit
23a90df844
2 changed files with 46 additions and 44 deletions
|
|
@ -31,6 +31,52 @@ return {
|
||||||
hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_space_indent_level)
|
hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_space_indent_level)
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
-- Better folds
|
||||||
|
{
|
||||||
|
'kevinhwang91/nvim-ufo',
|
||||||
|
dependencies = {
|
||||||
|
'kevinhwang91/promise-async',
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
fold_virt_text_handler = require("user.utils.ufo").foldtext
|
||||||
|
}
|
||||||
|
},
|
||||||
|
-- Better status column
|
||||||
|
{
|
||||||
|
"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,
|
||||||
|
},
|
||||||
-- Snippets
|
-- Snippets
|
||||||
{
|
{
|
||||||
"L3MON4D3/LuaSnip",
|
"L3MON4D3/LuaSnip",
|
||||||
|
|
|
||||||
|
|
@ -19,50 +19,6 @@ 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
|
-- File explorer
|
||||||
{
|
{
|
||||||
"nvim-neo-tree/neo-tree.nvim",
|
"nvim-neo-tree/neo-tree.nvim",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue