Nvim: add treesitter text objects

This commit is contained in:
Marko Korhonen 2023-11-23 20:15:16 +02:00
parent 825b49ad06
commit 5a6cdb43d6
2 changed files with 118 additions and 46 deletions

View file

@ -9,8 +9,8 @@ return {
config = function()
local gitsigns = require("gitsigns")
require("which-key").register({
["["] = { c = { gitsigns.prev_hunk, "Previous hunk" } },
["]"] = { c = { gitsigns.next_hunk, "Next hunk" } },
["["] = { h = { gitsigns.prev_hunk, "Previous hunk" } },
["]"] = { h = { gitsigns.next_hunk, "Next hunk" } },
})
local builtin = require("statuscol.builtin")