From d6d2f7c34d42ecc5c7bf1aaa943170f6cd4820d0 Mon Sep 17 00:00:00 2001 From: LordMZTE Date: Tue, 21 Feb 2023 23:27:46 +0100 Subject: [PATCH] add C keybind --- mzte-nv/conf/lua/pluginconf/p-treesitter.fnl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mzte-nv/conf/lua/pluginconf/p-treesitter.fnl b/mzte-nv/conf/lua/pluginconf/p-treesitter.fnl index 4470014..ea03535 100644 --- a/mzte-nv/conf/lua/pluginconf/p-treesitter.fnl +++ b/mzte-nv/conf/lua/pluginconf/p-treesitter.fnl @@ -29,3 +29,6 @@ ;; Shorthand for deleting the TS node under the cursor (vim.keymap.set :n :D delete-node-under-cursor {:noremap true :silent true}) + +;; Shorthand for deleting the TS node under the cursor and switching to insert mode +(vim.keymap.set :n :C (fn [] (delete-node-under-cursor) (vim.cmd.startinsert)))