diff --git a/nvim/.config/nvim/lua/plugins/treesitter.lua b/nvim/.config/nvim/lua/plugins/treesitter.lua index e830bd8..8c5760e 100644 --- a/nvim/.config/nvim/lua/plugins/treesitter.lua +++ b/nvim/.config/nvim/lua/plugins/treesitter.lua @@ -1,38 +1,38 @@ require('nvim-treesitter.configs').setup { - -- "all", or a list of languages - ensure_installed = "all", + -- "all", or a list of languages + ensure_installed = "all", - -- Install languages synchronously (only applied to `ensure_installed`) - sync_install = false, + -- Install languages synchronously (only applied to `ensure_installed`) + sync_install = false, - -- List of parsers to ignore installing - --ignore_install = { "javascript" }, + -- List of parsers to ignore installing + --ignore_install = { "javascript" }, - highlight = { - -- `false` will disable the whole extension - enable = true, + highlight = { + -- `false` will disable the whole extension + enable = true, - -- list of language that will be disabled - --disable = { "c", "rust" }, + -- list of language that will be disabled + --disable = { "c", "rust" }, - -- Setting this to true will run `:h syntax` and tree-sitter at the same time. - -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). - -- Using this option may slow down your editor, and you may see some duplicate highlights. - -- Instead of true it can also be a list of languages - additional_vim_regex_highlighting = false, + -- Setting this to true will run `:h syntax` and tree-sitter at the same time. + -- Set this to `true` if you depend on 'syntax' being enabled (like for indentation). + -- Using this option may slow down your editor, and you may see some duplicate highlights. + -- Instead of true it can also be a list of languages + additional_vim_regex_highlighting = { template }, + }, + + incremental_selection = { + enable = true, + keymaps = { + init_selection = "gnn", + node_incremental = "grn", + scope_incremental = "grc", + node_decremental = "grm", }, + }, - incremental_selection = { - enable = true, - keymaps = { - init_selection = "gnn", - node_incremental = "grn", - scope_incremental = "grc", - node_decremental = "grm", - }, - }, - - indent = { - enable = true - }, + indent = { + enable = true + }, }