Collection of my dotfiles.
-
Place config files in
~
directory. Create~/vimfiles
directory and createbackup
andswap
directories in it. -
Download plugin manager and save it in
~/vimfiles/autoload
directory. -
Copy
custom-snippets
directory to~/vimfiles
to add custom snippets.
Make neovim read config files from home directory instead of default:
- Add below text to
~\AppData\Local\nvim\init.vim
:
set runtimepath+=~/vimfiles,~/vimfiles/after
set packpath+=~/vimfiles
source ~/_vimrc
- Add below text to
~\AppData\Local\nvim\ginit.vim
:
set runtimepath+=~/vimfiles,~/vimfiles/after
set packpath+=~/vimfiles
source ~/_gvimrc
-
After that, reload NeoVim, and run
:PlugInstall
command to install plugins. Make sure that everything installs correctly. -
Reload, done.
- Create common venv for nvim python plugins
virtualenv nvim-venv
- Activate
nvim-venv/Scripts/activate.ps1
- Install
pip install pynvim python-language-server[all]
- In
_vimrc
file add two variables:g:python3_host_prog
to point topython.exe
innvim-venv
;g:python_lsp
to point topyls.exe
innvim-venv
.
Done.