From 5e80c75e41e4cef42f3f9f0c7ae4d7c7b9b15833 Mon Sep 17 00:00:00 2001 From: YuNing Chen Date: Wed, 19 Apr 2023 20:53:26 +0800 Subject: [PATCH] feat(treesitter): use `auto_install` to install missing parser even though it recommend "set to false if you don't have `tree-sitter` CLI installed locally", it actually works perfectly --- lua/lazyvim/plugins/treesitter.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/lazyvim/plugins/treesitter.lua b/lua/lazyvim/plugins/treesitter.lua index 8aaea6ee..6d21707b 100644 --- a/lua/lazyvim/plugins/treesitter.lua +++ b/lua/lazyvim/plugins/treesitter.lua @@ -33,6 +33,7 @@ return { ---@type TSConfig opts = { highlight = { enable = true }, + auto_install = true, indent = { enable = true }, context_commentstring = { enable = true, enable_autocmd = false }, ensure_installed = {