From 2b6426dde0a4fde5dbb24d6311e43cc30588aa2f Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Mon, 14 Feb 2022 14:14:58 +0100 Subject: [PATCH] treesitter fixes --- .config/nvim/lua/dln/treesitter.lua | 52 ++++++++++++++--------------- 1 file changed, 26 insertions(+), 26 deletions(-) diff --git a/.config/nvim/lua/dln/treesitter.lua b/.config/nvim/lua/dln/treesitter.lua index 382c669..15c98e1 100644 --- a/.config/nvim/lua/dln/treesitter.lua +++ b/.config/nvim/lua/dln/treesitter.lua @@ -46,32 +46,32 @@ require("nvim-treesitter.configs").setup { ["[M"] = "@class.outer" } }, - select = { - enable = true, - keymaps = { - -- You can use the capture groups defined in textobjects.scm - ["af"] = "@function.outer", - ["if"] = "@function.inner", - ["ac"] = "@class.outer", - ["ic"] = "@class.inner", - -- Or you can define your own textobjects like this - ["iF"] = { - python = "(function_definition) @function", - cpp = "(function_definition) @function", - c = "(function_definition) @function", - java = "(method_declaration) @function" - } - } - }, - swap = { - enable = true, - swap_next = { - ["l"] = "@parameter.inner" - }, - swap_previous = { - ["h"] = "@parameter.inner" - } - } + -- select = { + -- enable = true, + -- keymaps = { + -- -- You can use the capture groups defined in textobjects.scm + -- ["af"] = "@function.outer", + -- ["if"] = "@function.inner", + -- ["ac"] = "@class.outer", + -- ["ic"] = "@class.inner", + -- -- Or you can define your own textobjects like this + -- ["iF"] = { + -- python = "(function_definition) @function", + -- cpp = "(function_definition) @function", + -- c = "(function_definition) @function", + -- java = "(method_declaration) @function" + -- } + -- } + -- }, + -- swap = { + -- enable = true, + -- swap_next = { + -- ["l"] = "@parameter.inner" + -- }, + -- swap_previous = { + -- ["h"] = "@parameter.inner" + -- } + -- } }, --- nvim-ts-autotag --- autotag = {