diff --git a/after/plugin/treescript.lua b/after/plugin/treescript.lua index 11f4df9..f18b775 100644 --- a/after/plugin/treescript.lua +++ b/after/plugin/treescript.lua @@ -21,4 +21,17 @@ require('nvim-treesitter.configs').setup({ -- Instead of true it can also be a list of languages additional_vim_regex_highlighting = false, }, + incremental_selection = { + enable = true, + keymaps = { + init_selection = "tnn", -- set to `false` to disable one of the mappings + node_incremental = "trn", + scope_incremental = "trc", + node_decremental = "trm", + }, + }, }) + +-- Adding spell check to other treesitter query groups. Only comments are spell checked by default +-- vim.treesitter.query.set("python", "highlights", "(string) @string @spell") +vim.treesitter.query.set("lua", "highlights", "(string) @string @spell")