From e768b07fdaf7a3e9aca3feb175e37e1397ad520b Mon Sep 17 00:00:00 2001 From: Michael Mandl Date: Mon, 22 Aug 2022 07:56:10 +0200 Subject: [PATCH] feat: explicitly set treesitter config --- home-manager/neovim/treesitter.lua | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/home-manager/neovim/treesitter.lua b/home-manager/neovim/treesitter.lua index 4db0e3e..8c259f9 100644 --- a/home-manager/neovim/treesitter.lua +++ b/home-manager/neovim/treesitter.lua @@ -1,8 +1,20 @@ require('nvim-treesitter.configs').setup({ - highlight = { enable = true, additional_vim_regex_highlighting = false }, ensure_installed = { "bash", "c", "cpp", "css", "dockerfile", "hcl", "html", "javascript", "json", "latex", "lua", "markdown", "nix", "python", "rust", "svelte", "toml", "tsx", "typescript", "vim", "vue", "yaml" - } + }, + auto_install = true, + highlight = { + enable = true, + additional_vim_regex_highlighting = false + }, + indent = { + enable = true, + }, + rainbow = { + enable = true, + extended_mode = true, + max_file_lines = nil, + }, })