From 49362e7482b1b90fb25bb7116bc02431b25cbadd Mon Sep 17 00:00:00 2001 From: Szwendacz Date: Mon, 4 Mar 2024 12:35:54 +0100 Subject: [PATCH] fix Containerfile - TS modules installing instruction --- Containerfile | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/Containerfile b/Containerfile index d2d0de7..4e6c5b5 100644 --- a/Containerfile +++ b/Containerfile @@ -59,21 +59,12 @@ RUN dnf5 install -y \ pip install ${PIP_PKGS} && \ dnf5 remove -y ${BUILD_ONLY_PKGS} && \ dnf5 -y autoremove && \ - dnf5 clean all - -RUN rm /root/.config/nvim/lazy-lock.json || true -# install lsp and linters using mason -RUN nvim --headless '+TSInstall all' \ + dnf5 clean all && \ + rm /root/.config/nvim/lazy-lock.json; \ + nvim --headless \ +"MasonInstall ${MASON_PKGS}" \ +qa ; \ - nvim --headless '+TSInstall all' \ - +qa; \ - nvim --headless '+TSInstall all' \ - +qa; \ - nvim --headless '+TSInstall all' \ - +qa; \ - chown -R root:root /root/.local/share/nvim/mason/packages/sqlls/node_modules/sql-language-server/ - -RUN echo '[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc + chown -R root:root /root/.local/share/nvim/mason/packages/sqlls/node_modules/sql-language-server/ && \ + echo '[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc ENTRYPOINT [ "/usr/bin/nvim" ]