fix install_nvim script
This commit is contained in:
1 parent
7f27f187d8
commit
437c91dc7a
1 file changed
+10
-6
@@ -11,12 +11,15 @@ sudo apt install -y \
|
|||||||
build-essential \
|
build-essential \
|
||||||
ripgrep \
|
ripgrep \
|
||||||
fd-find \
|
fd-find \
|
||||||
npm \
|
|
||||||
pipx \
|
pipx \
|
||||||
wl-clipboard \
|
wl-clipboard \
|
||||||
xclip \
|
xclip \
|
||||||
tmux
|
tmux
|
||||||
|
|
||||||
|
if [[ "$(which npm)" == "" ]]; then
|
||||||
|
sudo apt install npm
|
||||||
|
fi
|
||||||
|
|
||||||
echo "Installing latest Neovim..."
|
echo "Installing latest Neovim..."
|
||||||
sudo snap install nvim --classic || true
|
sudo snap install nvim --classic || true
|
||||||
|
|
||||||
@@ -46,7 +49,7 @@ rm -rf ~/.config/nvim/.git
|
|||||||
|
|
||||||
mkdir -p ~/.config/nvim/lua/config
|
mkdir -p ~/.config/nvim/lua/config
|
||||||
|
|
||||||
cat > ~/.config/nvim/lua/config/options.lua <<'EOF'
|
cat >~/.config/nvim/lua/config/options.lua <<'EOF'
|
||||||
vim.opt.clipboard = "unnamedplus"
|
vim.opt.clipboard = "unnamedplus"
|
||||||
|
|
||||||
-- SSH + terminal copy compatibility
|
-- SSH + terminal copy compatibility
|
||||||
@@ -63,14 +66,15 @@ vim.opt.number = true
|
|||||||
EOF
|
EOF
|
||||||
|
|
||||||
mkdir -p ~/.config/nvim/lua/plugins
|
mkdir -p ~/.config/nvim/lua/plugins
|
||||||
|
cat >~/.config/nvim/lua/plugins/extras.lua <<'EOF'
|
||||||
cat > ~/.config/nvim/lua/plugins/debug.lua <<'EOF'
|
|
||||||
return {
|
return {
|
||||||
{ import = "lazyvim.plugins.extras.dap.core" },
|
{ import = "lazyvim.plugins.extras.dap.core" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.python" },
|
{ import = "lazyvim.plugins.extras.lang.python" },
|
||||||
}
|
}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
|
nvim --headless '+lua require("lazy").load({plugins={"nvim-dap"}})' +qa
|
||||||
|
echo "Enable dap.core and lang.python in :LazyInstall"
|
||||||
echo
|
echo
|
||||||
echo "Done."
|
echo "Done."
|
||||||
echo
|
echo
|
||||||
|
|||||||
Reference in new issue
Block a user