-
-
Notifications
You must be signed in to change notification settings - Fork 7
/
.nvimsbind
21 lines (21 loc) · 657 Bytes
/
.nvimsbind
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
# $HOME/.config/nvim-Lazyman/.nvimsbind
# This file should be sourced from the shell initialization file
# after first sourcing ~/.config/nvim-Lazyman/.lazymanrc
command -v nvims > /dev/null && {
if [ -n "$($SHELL -c 'echo $ZSH_VERSION')" ]; then
bindkey -s "^n" "nvims\n"
elif [ -n "$($SHELL -c 'echo $BASH_VERSION')" ]; then
bind -x '"\C-n": nvims'
else
bindkey -s "^n" "nvims\n"
fi
}
command -v neovide > /dev/null && {
if [ -n "$($SHELL -c 'echo $ZSH_VERSION')" ]; then
bindkey -s "^N" "neovides\n"
elif [ -n "$($SHELL -c 'echo $BASH_VERSION')" ]; then
bind -x '"\C-N": neovides'
else
bindkey -s "^N" "neovides\n"
fi
}