fix installing lsp servers not compatible with arm64
This commit is contained in:
parent
1b4d92f8fe
commit
51f5d6cd3c
1 changed files with 5 additions and 6 deletions
|
@ -38,7 +38,6 @@ ENV MASON_PKGS=" \
|
||||||
html-lsp \
|
html-lsp \
|
||||||
intelephense \
|
intelephense \
|
||||||
json-lsp \
|
json-lsp \
|
||||||
lemminx \
|
|
||||||
lua-language-server \
|
lua-language-server \
|
||||||
marksman \
|
marksman \
|
||||||
phpcs \
|
phpcs \
|
||||||
|
@ -50,8 +49,9 @@ ENV MASON_PKGS=" \
|
||||||
yaml-language-server \
|
yaml-language-server \
|
||||||
markdownlint \
|
markdownlint \
|
||||||
ansible-language-server \
|
ansible-language-server \
|
||||||
ansible-lint \
|
ansible-lint"
|
||||||
helm-ls"
|
|
||||||
|
ENV MASON_PKGS_NO_ARM="lemminx helm-ls"
|
||||||
|
|
||||||
|
|
||||||
COPY . /root/.config/nvim
|
COPY . /root/.config/nvim
|
||||||
|
@ -62,9 +62,8 @@ RUN dnf5 install -y \
|
||||||
dnf5 remove -y ${BUILD_ONLY_PKGS} && \
|
dnf5 remove -y ${BUILD_ONLY_PKGS} && \
|
||||||
dnf5 -y autoremove && \
|
dnf5 -y autoremove && \
|
||||||
dnf5 clean all && \
|
dnf5 clean all && \
|
||||||
nvim --headless \
|
nvim --headless +"MasonInstall ${MASON_PKGS}" +qa || exit 1 ; \
|
||||||
+"MasonInstall ${MASON_PKGS}" \
|
nvim --headless +"MasonInstall ${MASON_PKGS_NO_ARM}" +qa ; \
|
||||||
+qa && \
|
|
||||||
echo '[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc
|
echo '[ -f /usr/share/fzf/shell/key-bindings.bash ] && source /usr/share/fzf/shell/key-bindings.bash' >> /root/.bashrc
|
||||||
|
|
||||||
ENTRYPOINT [ "/usr/bin/nvim" ]
|
ENTRYPOINT [ "/usr/bin/nvim" ]
|
||||||
|
|
Loading…
Reference in a new issue