Skip to content

Commit 780a410

Browse files
committed
no commit message given
1 parent 69ea04e commit 780a410

1 file changed

Lines changed: 9 additions & 2 deletions

File tree

plugins/nvim.sh

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ function _activate_nvim() {
22
local -n __var=$1
33
local -n __error=$2
44
if ! checkInPath "nvim" __var __error; then return; fi
5-
# alias vi="nvim"
6-
# alias vim="nvim"
5+
alias vi="nvim"
6+
alias vim="nvim"
77
__var=0
88
}
99
function _activate_nvim_with_folder() {
@@ -49,6 +49,13 @@ function _install_nvim_ubuntu() {
4949
sudo apt install neovim
5050
}
5151

52+
function _install_nvim_lazy() {
53+
# remove previous config
54+
rm -rf "${HOME}/.config/nvim"
55+
# Clone starter
56+
git clone https://github.com/LazyVim/starter ~/.config/nvim
57+
}
58+
5259
function _clean_nvim() {
5360
rm -rf "${HOME}/.cache/nvim" "${HOME}/.local/share/nvim" "${HOME}/.local/state/nvim"
5461
}

0 commit comments

Comments
 (0)