1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim: move nvim-ufo and statuscol.nvim from ui file to editor.

This commit is contained in:
Henrik Hautakoski 2024-08-27 22:22:36 +02:00
parent 9e0ba8464d
commit 23a90df844
2 changed files with 46 additions and 44 deletions

View file

@ -31,6 +31,52 @@ return {
hooks.register(hooks.type.WHITESPACE, hooks.builtin.hide_first_space_indent_level)
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
{
"L3MON4D3/LuaSnip",

View file

@ -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
{
"nvim-neo-tree/neo-tree.nvim",