nvim/init.vim: nvim directory will always be in the right place now

This commit is contained in:
Gender Demon 2021-05-06 16:25:13 +01:00
parent e818ab33b2
commit 67da0e04d6
1 changed files with 7 additions and 0 deletions

View File

@ -43,6 +43,13 @@ let g:zig_fmt_autosave = 0
" Plugins
" Load plugin manager
" Plugin directory should be in XDG_CONFIG_HOME, or in ~/.config if that
" variable is unset
if $XDG_CONFIG_HOME ==# ""
let b:config_prefix="~/.config"
else
let b:config_prefix=$XDG_CONFIG_HOME
endif
call plug#begin($XDG_CONFIG_HOME . 'nvim/plugins/')
" Semantic understanding of languages