Adding tree sitter spell check changes
This commit is contained in:
parent
1535f7f417
commit
8e9cbab273
@ -21,4 +21,17 @@ require('nvim-treesitter.configs').setup({
|
|||||||
-- Instead of true it can also be a list of languages
|
-- Instead of true it can also be a list of languages
|
||||||
additional_vim_regex_highlighting = false,
|
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")
|
||||||
|
Loading…
Reference in New Issue
Block a user