dotfiles/home/.config/nvim/lua/plugins/statuscol.lua

27 lines
689 B
Lua
Raw Normal View History

return {
"luukvbaal/statuscol.nvim",
dependencies = {
{
"lewis6991/gitsigns.nvim",
opts = {},
},
},
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" } },
})
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,
}