From 06c8f8a75158829595dbae41bd7875c3b95d7007 Mon Sep 17 00:00:00 2001 From: "Kenneth Benzie (Benie)" Date: Thu, 2 May 2024 16:15:54 +0100 Subject: [PATCH] Add ac/ic text objects for outer/inner class --- lua/plugins/treesitter.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index d614591..95b8c28 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -79,6 +79,9 @@ return { lookahead = true, -- include_surrounding_whitespace = true, keymaps = { + -- Class text objects + ['ac'] = '@class.outer', + ['ic'] = '@class.inner', -- Function text objects ['af'] = '@function.outer', ['if'] = '@function.inner',