Re-add nvim-treesitter plugin
This commit is contained in:
17
Dockerfile
17
Dockerfile
@@ -1,14 +1,21 @@
|
||||
FROM debian:unstable
|
||||
|
||||
RUN apt-get update
|
||||
RUN apt-get install -q -y locales git curl ripgrep tree-sitter-cli build-essential neovim
|
||||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen && locale-gen
|
||||
RUN apt-get update \
|
||||
&& apt-get install -q -y locales git curl ripgrep tree-sitter-cli build-essential neovim
|
||||
|
||||
RUN sed -i '/en_US.UTF-8/s/^# //g' /etc/locale.gen \
|
||||
&& locale-gen
|
||||
ENV LANG=en_US.UTF-8
|
||||
ENV LANGUAGE=en_US:en
|
||||
ENV LC_ALL=en_US.UTF-8
|
||||
WORKDIR /opt/app
|
||||
|
||||
WORKDIR /opt
|
||||
|
||||
COPY init.vim .
|
||||
RUN mkdir -p ~/.config/nvim && mv ./init.vim ~/.config/nvim
|
||||
RUN mkdir -p ~/.config/nvim \
|
||||
&& mv ./init.vim ~/.config/nvim
|
||||
|
||||
RUN sh -c 'curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
|
||||
|
||||
RUN nvim -c "PlugInstall" -c "qall" \
|
||||
&& nvim -c "TSUpdate" -c "qall"
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
|
||||
## start a docker container
|
||||
|
||||
docker run --rm -it -v $PWD:/opt/app nvim:latest nvim
|
||||
docker run --rm -it -v $PWD:/opt nvim:latest nvim
|
||||
|
||||
2
init.vim
2
init.vim
@@ -20,7 +20,7 @@ call plug#begin()
|
||||
Plug 'nvim-tree/nvim-web-devicons' " optional
|
||||
Plug 'nvim-tree/nvim-tree.lua'
|
||||
|
||||
"Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate', 'branch': 'master'}
|
||||
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
|
||||
|
||||
"Plug 'mg979/vim-visual-multi', {'branch': 'master'}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user