blob: 7da6413ce9e92b2d75eb33bf6337188585f50bf8 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
# Neovim specific config options imported by .bashrc
# Use this folder to store session files
export NVIM_SESSIONS=$HOME/.local/share/nvim/sessions
# Open Neovim loading the appropriate project session based on the name
# of the current folder. If it does not exists create a new one.
nvims() {
mkdir -p "$NVIM_SESSIONS"
if [ -d "$NVIM_SESSIONS" ];
then
nvim +"call v:lua.dyamon.session.load()" $@
else
exit 1
fi
}
|