2020-12-15 21:03:30 +00:00
|
|
|
# Vim config
|
|
|
|
Personal configuration and plugins for Vim
|
|
|
|
|
2022-04-28 10:00:56 +01:00
|
|
|
## 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/."
|
2022-08-04 14:53:09 +01:00
|
|
|
ln -s "$HOME/bin/nvim.appimage" "$HOME/bin/nvim" # Optional to avoid extension in commands
|
2022-04-28 10:00:56 +01:00
|
|
|
# ./nvim.appimage
|
|
|
|
```
|
|
|
|
|
2022-11-29 08:58:34 +00:00
|
|
|
## Installing configuration
|
2022-08-31 08:08:30 +01:00
|
|
|
```bash
|
2022-11-29 08:58:34 +00:00
|
|
|
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
|
2022-07-26 16:36:14 +01:00
|
|
|
```
|
|
|
|
|
2022-11-01 16:57:32 +00:00
|
|
|
### Installing `Packer` plugin manager
|
2022-07-26 11:57:25 +01:00
|
|
|
```bash
|
2022-11-01 16:57:32 +00:00
|
|
|
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
|
|
|
|
$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim
|
2022-07-26 11:57:25 +01:00
|
|
|
```
|
2022-11-01 16:57:32 +00:00
|
|
|
Plugin definitions are in `plugins.lua`, inside `vim` run `:PackerSync` to install plugins
|
2022-07-26 11:57:25 +01:00
|
|
|
|
|
|
|
## Enabling python support
|
|
|
|
```bash
|
2022-08-04 14:53:09 +01:00
|
|
|
pyenv virtualenv neovim3 # Assumes working pyenv
|
|
|
|
pyenv activate neovim3
|
|
|
|
pip install -U pip setuptools wheel
|
2022-11-02 11:14:31 +00:00
|
|
|
pip install -U pynvim pyright fortl # If pyright not available, fallback to: "python-lsp-server[all]" pylsp-mypy
|
2022-08-04 14:53:09 +01:00
|
|
|
pyenv deactivate
|
2022-07-26 11:57:25 +01:00
|
|
|
```
|
|
|
|
|
2022-04-28 10:00:56 +01:00
|
|
|
From [vim documentation](https://neovim.io/doc/user/nvim.html#nvim-from-vim)
|
2022-11-02 09:15:55 +00:00
|
|
|
|
|
|
|
## Add LUA language server
|
|
|
|
Follow instructions from [sumneko/lua-language-server GitHub](https://github.com/sumneko/lua-language-server/wiki/Getting-Started#command-line).
|