From 2099948605ac8b62fe53ef4ffc227f7a862de8bf Mon Sep 17 00:00:00 2001 From: Polesznyák Márk Date: Tue, 24 Feb 2026 09:17:18 +0100 Subject: refactor(image): only copy necessary dirs and files to .config/nvim --- Dockerfile | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Dockerfile b/Dockerfile index 983f57c..bfc8129 100644 --- a/Dockerfile +++ b/Dockerfile @@ -67,7 +67,7 @@ RUN rustup-init -y --default-toolchain none && \ # copy config files COPY .bashrc .bashrc -COPY . .config/nvim +COPY --parents after ftplugin lsp lua spell init.lua .config/nvim/ FROM base SHELL ["/bin/bash", "-c"] @@ -76,7 +76,6 @@ RUN nvim --headless +"Lazy! sync" +qa; rm -rf /root/.cache # symlink the clangd executable, since it can't be installed with mason # also symlink rust-analyzer -RUN ln -sf /usr/bin/clangd /root/.local/share/nvim/mason/bin/clangd && \ - ln -sf /root/.rustup/toolchains/nightly-x86_64-unknown-linux-musl/bin/rust-analyzer /root/.local/share/nvim/mason/bin/rust-analyzer +RUN ln -sf /usr/bin/clangd /root/.local/share/nvim/mason/bin/clangd ENTRYPOINT ["/bin/bash"] -- cgit v1.2.3