From 9dc0b5db5a98bf47abace5b22d1a5af05e5e743c Mon Sep 17 00:00:00 2001 From: Maciej Lebiest Date: Sat, 13 Jan 2024 21:09:21 +0100 Subject: [PATCH] more treesitter conf adjustments for nvim-in-container workflow --- Containerfile | 10 +++++----- lua/plugins/treesitter.lua | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Containerfile b/Containerfile index 713012d..d3935ee 100644 --- a/Containerfile +++ b/Containerfile @@ -62,16 +62,16 @@ RUN dnf install -y \ RUN rm /root/.config/nvim/lazy-lock.json || true # install lsp and linters using mason -RUN nvim --headless +TSUpdateSync \ +RUN nvim --headless +TSInstall all \ +"MasonInstall ${MASON_PKGS}" \ +qa ; \ - nvim --headless +TSUpdateSync \ + nvim --headless +TSInstall all \ +qa; \ - nvim --headless +TSUpdateSync \ + nvim --headless +TSInstall all \ +qa; \ - nvim --headless +TSUpdateSync \ + nvim --headless +TSInstall all \ +qa; \ - nvim --headless +TSUpdateSync \ + nvim --headless +TSInstall all \ +qa; \ chown -R root:root /root/.local/share/nvim/mason/packages/sqlls/node_modules/sql-language-server/ diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua index f5063f1..5c95d7c 100644 --- a/lua/plugins/treesitter.lua +++ b/lua/plugins/treesitter.lua @@ -1,7 +1,7 @@ return function() require 'nvim-treesitter.configs'.setup { -- A list of parser names, or "all" - ensure_installed = "all", + ensure_installed = "", -- Install parsers synchronously (only applied to `ensure_installed`) sync_install = true,