Nvim: add treesitter text objects

This commit is contained in:
Marko Korhonen 2023-11-23 20:15:16 +02:00
parent f4c7e18482
commit 5d47465266
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
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")