Skip to content

Commit 56a721f

Browse files
committed
add neovim
1 parent dd66684 commit 56a721f

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

Dockerfile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ RUN apt-get update && export DEBIAN_FRONTEND=noninteractive \
2222
&& apt-get install -y dnsutils glow pv \
2323
&& apt-get clean -y && rm -rf /var/lib/apt/lists/*
2424

25+
# Install a newer Neovim than what Debian provides.
26+
RUN curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim-linux-x86_64.tar.gz \
27+
&& tar -C /opt -xzf nvim-linux-x86_64.tar.gz
28+
2529
# Configure PHP, make memory_limit and upload_max_filesize match Pantheon
2630
RUN cp /usr/local/etc/php/php.ini-development /usr/local/etc/php/php.ini \
2731
&& sed -i 's/memory_limit\s*=.*/memory_limit=2048M/g' /usr/local/etc/php/php.ini \

local/etc/uceap.d/devcontainer_on_create.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,9 @@ function devcontainer_on_create() {
7070
}
7171
EOF
7272

73+
# Put neovim in the PATH for those who celebrate
74+
ln -s /opt/nvim-linux-x86_64/bin/nvim ~/.local/bin
75+
7376
# Setup shell completion
7477
uceap completion bash | sudo sh -c "cat > /etc/bash_completion.d/uceap"
7578
gh completion --shell bash | sudo sh -c "cat > /etc/bash_completion.d/gh"

0 commit comments

Comments
 (0)