My personal NixOS configuration
Find a file
Edward Litherland-Smith c288e11ac6 Move fully to nvim config (test)
Remove vim plugins and configuration, move to using
nvim init and vim-plug to manage plugins
2022-07-26 11:57:25 +01:00
indent Add better python indenting 2021-02-22 15:48:10 +00:00
true_colour_tests Add checks for true colour support in terminal (visual only) 2021-02-22 09:05:59 +00:00
.gitignore Set spelling locally, set autoread 2021-01-07 08:59:23 +00:00
.gitmodules Move fully to nvim config (test) 2022-07-26 11:57:25 +01:00
init.vim Move fully to nvim config (test) 2022-07-26 11:57:25 +01:00
README.md Move fully to nvim config (test) 2022-07-26 11:57:25 +01:00
tmux.conf Fix typo in python.vim 2022-07-08 13:33:23 +01:00

Vim config

Personal configuration and plugins for Vim

Installing neovim AppImage

curl -LO https://github.com/neovim/neovim/releases/latest/download/nvim.appimage
chmod u+x nvim.appimage
mv nvim.appimage "$HOME/bin/."
# ./nvim.appimage

Installing vim-plug plugin manager

sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'

Plugin definitions are in init.vim, inside vim run :PlugInstall to install plugins

Enabling python support

Install pynvim package for python

## Installing language servers for LSP

pip install -U "python-lsp-server[all]" fortls

Installs pylsp and fortls servers

Miscellaneous settings

  • Modifications in pack/plugins/start/python-syntax
    • Edit .git/modules/pack/plugins/start/python-syntax/info/exclude to exclude doc

To use with existing ~/.vimrc

Add the following lines to neovim init file:

set runtimepath^=~/.vim runtimepath+=~/.vim/after let &packpath = &runtimepath source ~/.vimrc

Using the following commands:

:call mkdir(stdpath('config'), 'p') :exe 'edit '.stdpath('config').'/init.vim'

From vim documentation