nixos/README.md

41 lines
1.4 KiB
Markdown

# Vim config
Personal configuration and plugins for Vim
## Installing neovim AppImage
```bash
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
```
## Installing configuration
```bash
git clone git@github.com:elitherl/vim-config.git $XDG_CONFIG_HOME/nvim
# or using symlink
git clone git@github.com:elitherl/vim-config.git /path/to/directory
ln -s /path/to/directory $XDG_CONFIG_HOME/nvim
```
### Installing `Packer` plugin manager
```bash
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
```bash
pyenv virtualenv neovim3 # Assumes working pyenv
pyenv activate neovim3
pip install -U pip setuptools wheel
pip install -U pynvim pyright fortl # If pyright not available, fallback to: "python-lsp-server[all]" pylsp-mypy
pyenv deactivate
```
From [vim documentation](https://neovim.io/doc/user/nvim.html#nvim-from-vim)
## Add LUA language server
Follow instructions from [sumneko/lua-language-server GitHub](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#command-line).