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",
|
2023-12-08 10:42:09 +00:00
|
|
|
"aerial",
|
2024-05-12 17:38:26 +00:00
|
|
|
"zsh",
|
2024-04-13 08:49:11 +00:00
|
|
|
"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" },
|
2024-03-03 20:09:02 +00:00
|
|
|
colwidth = 2,
|
2023-11-29 08:24:47 +00:00
|
|
|
},
|
2024-03-03 20:36:20 +00:00
|
|
|
auto = true,
|
2024-04-13 08:49:11 +00:00
|
|
|
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, },
|
2024-04-13 08:49:11 +00:00
|
|
|
click = "v:lua.ScSa",
|
2024-05-24 16:42:20 +00:00
|
|
|
}
|
2024-04-13 08:49:11 +00:00
|
|
|
},
|
2023-11-29 08:24:47 +00:00
|
|
|
})
|
|
|
|
end,
|
2024-04-13 08:49:11 +00:00
|
|
|
},
|
2023-11-29 08:24:47 +00:00
|
|
|
}
|