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",
"NvimTree",
2023-11-29 08:24:47 +00:00
},
segments = {
-- diagnostic signs
{
sign = {
name = { "Diagnostic" },
colwidth = 2,
maxwidth = 1,
2023-11-29 08:24:47 +00:00
},
auto = true,
click = "v:lua.ScSa",
2023-11-29 08:24:47 +00:00
},
-- 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",
},
},
2023-11-29 08:24:47 +00:00
})
end,
},
2023-11-29 08:24:47 +00:00
}