2023-11-25 14:37:36 +02:00
|
|
|
-- Customize statuscolumn
|
|
|
|
--- @type LazyPluginSpec
|
2023-11-21 22:32:32 +02:00
|
|
|
return {
|
|
|
|
"luukvbaal/statuscol.nvim",
|
|
|
|
dependencies = {
|
|
|
|
{
|
|
|
|
"lewis6991/gitsigns.nvim",
|
2023-11-25 14:13:26 +02:00
|
|
|
config = true,
|
2023-11-21 22:32:32 +02:00
|
|
|
},
|
|
|
|
},
|
|
|
|
config = function()
|
|
|
|
local gitsigns = require("gitsigns")
|
|
|
|
require("which-key").register({
|
2023-11-23 20:15:16 +02:00
|
|
|
["["] = { h = { gitsigns.prev_hunk, "Previous hunk" } },
|
|
|
|
["]"] = { h = { gitsigns.next_hunk, "Next hunk" } },
|
2023-11-21 22:32:32 +02:00
|
|
|
})
|
|
|
|
|
|
|
|
local builtin = require("statuscol.builtin")
|
|
|
|
require("statuscol").setup({
|
|
|
|
relculright = true,
|
|
|
|
segments = {
|
|
|
|
{ text = { builtin.foldfunc }, click = "v:lua.ScFa" },
|
|
|
|
{ text = { "%s" }, click = "v:lua.ScSa" },
|
|
|
|
{ text = { builtin.lnumfunc, " " }, click = "v:lua.ScLa" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
}
|