2024-11-20 17:44:38 +00:00
|
|
|
--
|
|
|
|
-- Status column with click handlers
|
|
|
|
--
|
|
|
|
-- Source: https://github.com/luukvbaal/statuscol.nvim
|
|
|
|
-- ..............................................
|
|
|
|
--
|
|
|
|
-- Author: Sven Vogel
|
|
|
|
-- Created: 07.11.2024
|
|
|
|
-- Edited: 07.11.2024
|
|
|
|
--
|
|
|
|
-- ==============================================
|
|
|
|
|
|
|
|
return {
|
|
|
|
{
|
|
|
|
'luukvbaal/statuscol.nvim',
|
|
|
|
lazy = true,
|
|
|
|
event = {
|
|
|
|
"BufEnter",
|
|
|
|
"LspAttach"
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
local builtin = require("statuscol.builtin")
|
|
|
|
require("statuscol").setup({
|
|
|
|
setopt = true,
|
|
|
|
ft_ignore = {
|
|
|
|
"neo-tree"
|
|
|
|
},
|
|
|
|
segments = {
|
|
|
|
{
|
2024-11-24 16:35:08 +00:00
|
|
|
sign = { namespace = { "diagnostic/signs" }, maxwidth = 2, auto = true },
|
2024-11-20 17:44:38 +00:00
|
|
|
click = "v:lua.ScSa"
|
|
|
|
},
|
|
|
|
-- line numbers
|
|
|
|
{
|
|
|
|
text = { builtin.lnumfunc, " " },
|
|
|
|
click = "v:lua.ScLa",
|
|
|
|
},
|
|
|
|
-- folds
|
|
|
|
{
|
|
|
|
text = { builtin.foldfunc },
|
|
|
|
click = "v:lua.ScFa"
|
|
|
|
},
|
|
|
|
-- git signs
|
|
|
|
{
|
|
|
|
sign = { namespace = { "gitsigns" } },
|
|
|
|
click = "v:lua.ScSa"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end
|
|
|
|
}
|
|
|
|
}
|