diff options
| author | Polesznyák Márk <contact@pml68.dev> | 2025-12-31 23:53:09 +0100 |
|---|---|---|
| committer | Polesznyák Márk <contact@pml68.dev> | 2025-12-31 23:53:09 +0100 |
| commit | 7fcfe9fbce49a51dcb326d070709f6160225a13b (patch) | |
| tree | 115c1f8b295dc38cbed2b59fc7a49d70e25b9340 | |
| parent | chore(nvim-tressitter): update config for rewrite (diff) | |
| download | nvim-7fcfe9fbce49a51dcb326d070709f6160225a13b.tar.gz | |
feat: remove neovim-tex
| -rw-r--r-- | README.md | 22 | ||||
| -rw-r--r-- | tex.Dockerfile | 64 |
2 files changed, 2 insertions, 84 deletions
@@ -7,7 +7,7 @@ My custom Neovim setup Download into your config directory ```sh -git clone --depth=1 https://github.com/pml68/nvim-setup ~/.config/nvim +git clone --depth=1 https://git.sr.ht/~pml68/nvim-setup ~/.config/nvim ``` ## Usage with Docker @@ -19,7 +19,7 @@ docker pull ghcr.io/pml68/neovim:latest Or build it ```sh -docker build -t neovim -f Dockerfile . +docker build -t neovim . ``` And then run it @@ -28,21 +28,3 @@ docker run -it neovim:latest ``` The image size is somewhere around 4.3GB due to every language I use being included (Rust nightly, C# with .NET, Java 21 and 17 etc.) - -### TeX - -There is also an image that contains texlive packages I use on top of everything in the base image. The size is ~5.2GB. - -Pull or build the image -```sh -docker pull ghcr.io/pml68/neovim-tex:latest - -# OR - -docker build -t neovim-tex -f Dockerfile.tex . -``` - -And run it -```sh -docker run -it neovim-tex:latest -``` diff --git a/tex.Dockerfile b/tex.Dockerfile deleted file mode 100644 index 8d04f2a..0000000 --- a/tex.Dockerfile +++ /dev/null @@ -1,64 +0,0 @@ -FROM alpine:edge AS base -WORKDIR /root -SHELL ["/bin/sh", "-c"] - -RUN apk add --no-cache git \ - lazygit \ - neovim \ - man-pages \ - alpine-sdk \ - bash \ - eza \ - ncurses \ - util-linux-misc \ - curl \ - --update - -# install deps needed by neovim -RUN apk add --no-cache wget \ - gzip \ - neovim-doc \ - ripgrep \ - rustup \ - python3 \ - openjdk21 \ - openjdk17 \ - gradle \ - go \ - dotnet8-sdk \ - clang19-extra-tools \ - nodejs \ - npm - -# install TeX -RUN apk add --no-cache texlive \ - texlive-binextra \ - texmf-dist-fontutils \ - texmf-dist-fontsrecommended \ - texmf-dist-langenglish \ - texmf-dist-langeuropean \ - texmf-dist-latexextra \ - texmf-dist-latexrecommended \ - texmf-dist-pictures \ - texmf-dist-plaingeneric - -# pre-download lazy.nvim -RUN git clone --filter=blob:none https://github.com/folke/lazy.nvim.git --branch=stable /root/.local/share/nvim/lazy/lazy.nvim - -# set up Rust -RUN rustup-init -y --default-toolchain none && /root/.cargo/bin/rustup toolchain install nightly --allow-downgrade --profile minimal --component rustfmt,rust-src,clippy,rust-analyzer && echo -e "[unstable]\ngc = true" > /root/.cargo/config.toml - -# copy config files -COPY .bashrc .bashrc -COPY . .config/nvim - -FROM base -SHELL ["/bin/bash", "-c"] -WORKDIR /root -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 - -ENTRYPOINT ["/bin/bash"] |
