From b9fea8e9c22aedd8fd5e01b567df4398879752e1 Mon Sep 17 00:00:00 2001 From: Bruno Carlin Date: Wed, 15 Jun 2022 11:25:48 +0200 Subject: [PATCH] fix(nvim.plugins.treesitter): fix conf for newer versions --- nvim/.config/nvim/lua/plugins/treesitter.lua | 58 ++++++++++---------- 1 file changed, 29 insertions(+), 29 deletions(-) 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 + }, }