From 1cf475d7ee9034007396ba6183c64396bb237f02 Mon Sep 17 00:00:00 2001 From: Marko Korhonen Date: Thu, 21 Sep 2023 15:39:04 +0300 Subject: [PATCH] Nvim treesitter: add missing configuration parameters --- home/.config/nvim/lua/plugins/treesitter.lua | 70 ++++++++++---------- 1 file changed, 36 insertions(+), 34 deletions(-) diff --git a/home/.config/nvim/lua/plugins/treesitter.lua b/home/.config/nvim/lua/plugins/treesitter.lua index 64fea67..317f527 100644 --- a/home/.config/nvim/lua/plugins/treesitter.lua +++ b/home/.config/nvim/lua/plugins/treesitter.lua @@ -1,37 +1,39 @@ return function() - require("nvim-treesitter.configs").setup({ - ensure_installed = { - "bash", - "c", - "css", - "dockerfile", - "html", - "http", - "java", - "json", - "json5", - "latex", - "lua", - "make", - "markdown", - "php", - "python", - "regex", - "rasi", - "rst", - "scss", - "toml", - "tsx", - "typescript", - "javascript", - "yaml", - }, - highlight = { enable = true }, - indent = { enable = true }, - incremental_selection = { enable = true }, - context_commentstring = { enable = true }, - }) + require("nvim-treesitter.configs").setup({ + ensure_installed = { + "bash", + "css", + "dockerfile", + "html", + "http", + "java", + "javascript", + "json", + "json5", + "latex", + "lua", + "make", + "markdown", + "php", + "python", + "rasi", + "regex", + "rst", + "scss", + "toml", + "tsx", + "typescript", + "yaml", + }, + highlight = { enable = true }, + indent = { enable = true }, + incremental_selection = { enable = true }, + context_commentstring = { enable = true }, + sync_install = true, + ignore_install = {}, + auto_install = true, + }) - -- vim.wo.foldmethod = 'expr' - -- im.wo.foldexpr = 'nvim_treesitter#foldexpr()' + -- vim.wo.foldmethod = 'expr' + -- im.wo.foldexpr = 'nvim_treesitter#foldexpr()' end