summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/plugins/lspconfig.lua3
-rw-r--r--lua/plugins/treesitter.lua2
2 files changed, 4 insertions, 1 deletions
diff --git a/lua/plugins/lspconfig.lua b/lua/plugins/lspconfig.lua
index aead9fb..8487c2e 100644
--- a/lua/plugins/lspconfig.lua
+++ b/lua/plugins/lspconfig.lua
@@ -83,7 +83,8 @@ return {
'pyright',
'lua-language-server',
'shfmt',
- 'bash-language-server'
+ 'bash-language-server',
+ 'tree-sitter-cli',
-- 'shellcheck', -- install manually on system
-- 'gdtoolkit', -- install manually (at least for windows)
},
diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua
index 6ad61a1..0bb506e 100644
--- a/lua/plugins/treesitter.lua
+++ b/lua/plugins/treesitter.lua
@@ -88,6 +88,8 @@ return {
'nvim-treesitter/nvim-treesitter',
branch = 'main',
lazy = false,
+ -- mason puts the `tree-sitter` cli (needed to build parsers) on PATH
+ dependencies = { 'williamboman/mason.nvim' },
build = ':TSUpdate',
config = function()
require('nvim-treesitter').install(langs)