From fbbaff5a97c93d5f996f521f4a871b8af85e4a1b Mon Sep 17 00:00:00 2001 From: Michael Peters Date: Tue, 19 Mar 2024 17:57:47 -0700 Subject: [PATCH] ensure installed certain treesitter parsers --- lua/configs/treesitter.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/lua/configs/treesitter.lua b/lua/configs/treesitter.lua index 623383e..6bc8714 100644 --- a/lua/configs/treesitter.lua +++ b/lua/configs/treesitter.lua @@ -2,6 +2,22 @@ local function config() local treesitter_configs = require('nvim-treesitter.configs') treesitter_configs.setup({ + ensure_installed = { + 'lua', + 'python', + 'javascript', + 'typescript', + 'tsx', + 'json', + 'yaml', + 'sql', + 'rust', + 'c', + 'cpp', + 'java', + 'make', + 'hcl', -- terraform + }, highlight = { enable = true, disable = {} }, indent = { enable = true, disable = { 'html', 'typescript' } }, })