Update README

This commit is contained in:
Evie Litherland-Smith 2022-11-01 16:57:32 +00:00
parent d481a424bf
commit aaa5813ff6

View file

@ -21,15 +21,17 @@ sudo apt-get install python-dev python-pip python3-dev python3-pip
## Linking setup file
```bash
ln -s $HOME/.vim/init.vim $HOME/.config/nvim/init.vim
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 `vim-plug` plugin manager
### Installing `Packer` plugin manager
```bash
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
git clone --depth 1 https://github.com/wbthomason/packer.nvim\
$HOME/.local/share/nvim/site/pack/packer/start/packer.nvim
```
Plugin definitions are in `init.vim`, inside `vim` run `:PlugInstall` to install plugins
Plugin definitions are in `plugins.lua`, inside `vim` run `:PackerSync` to install plugins
## Enabling python support
```bash
@ -40,19 +42,4 @@ pip install -U pynvim "python-lsp-server[all]" fortls pylsp-mypy python-lsp-blac
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](https://neovim.io/doc/user/nvim.html#nvim-from-vim)