From 8e9cbab2738b367307ff6b536c51772df4be4544 Mon Sep 17 00:00:00 2001 From: Daniel Weber Date: Tue, 23 Jul 2024 15:41:47 -0400 Subject: [PATCH] Adding tree sitter spell check changes --- after/plugin/treescript.lua | 13 +++++++++++++ 1 file changed, 13 insertions(+) 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")