Neovim/lua/plugins/statuscol.lua

50 lines
1.4 KiB
Lua
Raw Normal View History

2023-11-29 08:24:47 +00:00
return {
{
"luukvbaal/statuscol.nvim",
2024-05-24 16:42:20 +00:00
lazy = true,
event = {
"BufEnter",
"LspAttach"
},
2023-11-29 08:24:47 +00:00
config = function()
local builtin = require("statuscol.builtin")
require("statuscol").setup({
ft_ignore = {
"neo-tree",
"toggleterm",
"dashboard",
"aerial",
2024-05-12 17:38:26 +00:00
"zsh",
"NvimTree",
2023-11-29 08:24:47 +00:00
},
segments = {
2024-05-24 16:42:20 +00:00
-- folds
{
text = { builtin.foldfunc },
click = "v:lua.ScFa",
},
2023-11-29 08:24:47 +00:00
-- diagnostic signs
{
sign = {
2024-05-24 16:42:20 +00:00
namespace = { "Diagnostic" },
colwidth = 2,
2023-11-29 08:24:47 +00:00
},
auto = true,
click = "v:lua.ScSa",
2023-11-29 08:24:47 +00:00
},
-- line numbers
{
2024-05-24 16:42:20 +00:00
text = { builtin.lnumfunc },
2023-11-29 08:24:47 +00:00
click = "v:lua.ScLa",
},
-- git signs
{
2024-05-24 16:42:20 +00:00
sign = { namespace = { "gitsigns" }, maxwidth = 1, },
click = "v:lua.ScSa",
2024-05-24 16:42:20 +00:00
}
},
2023-11-29 08:24:47 +00:00
})
end,
},
2023-11-29 08:24:47 +00:00
}