Evie Litherland-Smith
8c16cb127c
Move LSP config into config_plugins directory, function when loading nvim-lspconfig plugin |
||
---|---|---|
external | ||
fonts | ||
lua | ||
true_colour_tests | ||
.git-completion.bash | ||
.git-prompt.sh | ||
.gitignore | ||
init.lua | ||
install.sh | ||
README.md | ||
tmux.conf |
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
mkdir -p $HOME/.config/nvim/
ln -s $(readlink -f init.lua) $HOME/.config/nvim/init.lua
ln -s $(readlink -f lua) $HOME/.config/nvim/lua
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
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
Add LUA language server
Follow instructions from sumneko/lua-language-server GitHub.