add mason
This commit is contained in:
23
Dockerfile
23
Dockerfile
@ -3,7 +3,7 @@ FROM rockylinux:9.3
|
||||
ARG VERSION="v0.9.4"
|
||||
ARG NVIM="/nvim-linux64/bin/nvim"
|
||||
|
||||
RUN yum install -y wget git
|
||||
RUN yum install -y wget git npm gcc go unzip
|
||||
|
||||
# downlad neovim binary
|
||||
RUN wget "https://github.com/neovim/neovim/releases/download/${VERSION}/nvim-linux64.tar.gz"
|
||||
@ -13,6 +13,25 @@ RUN tar -xvf nvim-linux64.tar.gz
|
||||
RUN git clone https://git.kehilush.com/omri/dots
|
||||
RUN mkdir -p ~/.config && cp -r dots/.config/nvim ~/.config
|
||||
|
||||
# download nvim packages
|
||||
RUN $NVIM --headless -c 'Lazy sync' +q
|
||||
|
||||
ENTRYPOINT cp -r /nvim-linux64 /out
|
||||
# mason python
|
||||
RUN $NVIM --headless -c "MasonInstall autopep8 debugpy flake8 black mypy pyright" +q
|
||||
|
||||
# mason go
|
||||
RUN $NVIM --headless -c "MasonInstall gopls delve gofumpt goimports-reviser golangci-lint" +q
|
||||
|
||||
# mason lua
|
||||
RUN $NVIM --headless -c "MasonInstall stylua lua-language-server" +q
|
||||
|
||||
# archive everything
|
||||
RUN mkdir /archive
|
||||
RUN cp -r /nvim-linux64 /archive
|
||||
RUN cp -r ~/.local/share/nvim /archive/localsharenvim
|
||||
RUN cp -r ~/.config/nvim /archive/confignvim
|
||||
|
||||
# export everything
|
||||
RUN mkdir /out
|
||||
|
||||
CMD tar -czf /out/nvim.tar.gz /archive
|
||||
|
||||
Reference in New Issue
Block a user