Neovim/lua/plugins/statuscol.lua

44 lines
1.3 KiB
Lua
Raw Permalink Normal View History

2023-11-29 08:24:47 +00:00
return {
{
"luukvbaal/statuscol.nvim",
config = function()
local builtin = require("statuscol.builtin")
require("statuscol").setup({
ft_ignore = {
"neo-tree",
"toggleterm",
"dashboard",
"aerial",
2023-11-29 08:24:47 +00:00
},
segments = {
-- diagnostic signs
{
sign = {
name = { "Diagnostic" },
colwidth = 2,
maxwidth = 1,
condition = { true }
},
click = "v:lua.ScSa"
},
-- line numbers
{
text = { builtin.lnumfunc, " " },
click = "v:lua.ScLa",
},
-- folds
{
text = { builtin.foldfunc },
click = "v:lua.ScFa"
},
2023-11-29 08:24:47 +00:00
-- git signs
{
sign = { namespace = { "gitsigns" } },
click = "v:lua.ScSa"
}
}
})
end,
}
}