Neovim/lua/plugins/statuscol.lua

45 lines
1.3 KiB
Lua
Raw 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" },
2024-03-03 20:02:51 +00:00
colwidth = 1,
2023-11-29 08:24:47 +00:00
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,
}
}
2024-02-23 18:23:02 +00:00