From 79c0d7e5a28167bbca7a9003eaf834db5682e773 Mon Sep 17 00:00:00 2001 From: Alberto Cerrone <72306953+albertocerrone@users.noreply.github.com> Date: Sat, 21 Jan 2023 15:11:02 +0000 Subject: [PATCH] feat: Add treesitter auto_install --- init.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/init.lua b/init.lua index ac291dad..89cd4636 100644 --- a/init.lua +++ b/init.lua @@ -223,6 +223,10 @@ require('nvim-treesitter.configs').setup { -- Add languages to be installed here that you want installed for treesitter ensure_installed = { 'c', 'cpp', 'go', 'lua', 'python', 'rust', 'typescript', 'help', 'vim' }, + -- Automatically install missing parsers when entering buffer + -- `tree-sitter` CLI must be installed locally + auto_install = false, + highlight = { enable = true }, indent = { enable = true, disable = { 'python' } }, incremental_selection = {