From a96d1016fdc2228782b4db0c7d4b88a0c6429a62 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Mon, 5 Jun 2023 09:54:04 +0100 Subject: [PATCH] Turn off treesitter auto install and add some core parsers to ensure installed --- lua/plugins/treesitter.lua | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index 2e24d20..8c67424 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -24,7 +24,19 @@ return { require("nvim-treesitter.configs").setup(opts) end, opts = { - auto_install = true, + ensure_installed = { + "bash", + "fish", + "gitcommit", + "gitignore", + "lua", + "make", + "nix", + "python", + "vim", + "vimdoc", + }, + auto_install = false, highlight = { enable = true, disable = { "fortran" },