My personal NixOS configuration
Find a file
2023-01-09 18:41:48 +00:00
external Add efm-langserver and tree-sitter binaries 2022-11-07 15:19:36 +00:00
fonts Reorganise fonts, add NerdFont symbols only for kitty 2022-09-27 10:00:10 +01:00
lua Merge branch 'main' of github.com:elitherl/vim-config into main 2023-01-09 15:29:37 +00:00
true_colour_tests Add checks for true colour support in terminal (visual only) 2021-02-22 09:05:59 +00:00
.gitignore Update install script to be more useful and README to match, move venv for pynvim to standard location and use pipx for installing LSP+formatters 2023-01-09 15:24:30 +00:00
init.lua Add neovide config 2022-11-30 14:45:22 +00:00
install.sh Remove automatic install of pipx incase installed another way 2023-01-09 18:41:48 +00:00
README.md Update install script to be more useful and README to match, move venv for pynvim to standard location and use pipx for installing LSP+formatters 2023-01-09 15:24:30 +00:00
tmux.conf Add weather to tmux statusbar 2023-01-09 14:17:27 +00: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"

Installing configuration

git clone git@github.com:elitherl/vim-config.git ${XDG_CONFIG_HOME:-$HOME/.config}/nvim
# or using symlink
git clone git@github.com:elitherl/vim-config.git /path/to/directory
ln -s /path/to/directory ${XDG_CONFIG_HOME:-$HOME/.config}/nvim

Install script

install.sh currently handles installing Packer, pynvim, pipx and currently configured language servers with formatters. Will also update existing installs if already present.

Installing Packer plugin manager

git clone --depth 1 https://github.com/wbthomason/packer.nvim\
 $HOME/.local/share/nvim/site/pack/packer/start/packer.nvim

Plugin definitions are in plugins.lua, inside vim run :PackerSync to install plugins

Enabling python support

Set up neovim specific virtual environment to install pynvim package:

python3 -m venv "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/venv"
source "${XDG_CONFIG_HOME:-$HOME/.config}/nvim/venv/bin/activate"
pip install -U pip setuptools wheel && pip install -U pynvim
source deactivate

Installing language servers using pipx

Install pipx in chosen manner, e.g. as given in documentation:

python3 -m pip install --user pipx
python3 -m pipx ensurepath

For currently configured language servers and formatters run:

pipx install pyright
pipx install fortls
pipx install black
pipx install isort
pipx install zimports

Add LUA language server

Follow instructions from sumneko/lua-language-server GitHub.