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 \
|
||||
ripgrep \
|
||||
fd-find \
|
||||
npm \
|
||||
pipx \
|
||||
wl-clipboard \
|
||||
xclip \
|
||||
tmux
|
||||
|
||||
if [[ "$(which npm)" == "" ]]; then
|
||||
sudo apt install npm
|
||||
fi
|
||||
|
||||
echo "Installing latest Neovim..."
|
||||
sudo snap install nvim --classic || true
|
||||
|
||||
@@ -46,7 +49,7 @@ rm -rf ~/.config/nvim/.git
|
||||
|
||||
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"
|
||||
|
||||
-- SSH + terminal copy compatibility
|
||||
@@ -63,14 +66,15 @@ vim.opt.number = true
|
||||
EOF
|
||||
|
||||
mkdir -p ~/.config/nvim/lua/plugins
|
||||
|
||||
cat > ~/.config/nvim/lua/plugins/debug.lua <<'EOF'
|
||||
cat >~/.config/nvim/lua/plugins/extras.lua <<'EOF'
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.dap.core" },
|
||||
{ import = "lazyvim.plugins.extras.lang.python" },
|
||||
{ import = "lazyvim.plugins.extras.dap.core" },
|
||||
{ import = "lazyvim.plugins.extras.lang.python" },
|
||||
}
|
||||
EOF
|
||||
|
||||
nvim --headless '+lua require("lazy").load({plugins={"nvim-dap"}})' +qa
|
||||
echo "Enable dap.core and lang.python in :LazyInstall"
|
||||
echo
|
||||
echo "Done."
|
||||
echo
|
||||
|
||||
Reference in new issue
Block a user