My personal NixOS configuration
Find a file
2022-11-01 15:52:02 +00:00
fonts Reorganise fonts, add NerdFont symbols only for kitty 2022-09-27 10:00:10 +01:00
lua Move plugins from Plug to Packer 2022-11-01 15:52:02 +00:00
true_colour_tests Add checks for true colour support in terminal (visual only) 2021-02-22 09:05:59 +00:00
.git-completion.bash Add PS1 updating script 2022-07-27 08:56:25 +01:00
.git-prompt.sh Add PS1 updating script 2022-07-27 08:56:25 +01:00
.gitignore Remove nerdfont from tabby 2022-11-01 07:34:39 +00:00
init.lua Move plugins from Plug to Packer 2022-11-01 15:52:02 +00:00
install.sh Add packer, rename to make sense 2022-11-01 15:34:28 +00:00
README.md Add instructions to install nightly neovim using Ubuntu apt 2022-08-31 08:08:30 +01:00
tmux.conf Add kitty to tmux config 2022-08-24 14:48:58 +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/."
ln -s "$HOME/bin/nvim.appimage" "$HOME/bin/nvim"  # Optional to avoid extension in commands
# ./nvim.appimage

(Alternate) Installing on Ubuntu

sudo apt-get install software-properties-common
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt-get update
sudo apt-get install neovim
sudo apt-get install python-dev python-pip python3-dev python3-pip

Linking setup file

ln -s $HOME/.vim/init.vim $HOME/.config/nvim/init.vim

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'
vim -c PlugInstall -c PlugClean -c qa! # To install plugins for nvim defined in init.vim

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

Enabling python support

pyenv virtualenv neovim3  # Assumes working pyenv
pyenv activate neovim3
pip install -U pip setuptools wheel
pip install -U pynvim "python-lsp-server[all]" fortls pylsp-mypy python-lsp-black
pyenv deactivate

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