LunarVim/README.md

118 lines
2.6 KiB
Markdown
Raw Normal View History

2019-02-10 21:18:36 +01:00
# Nvim
2020-04-02 18:28:13 +02:00
Plugging my [blog](chrisatmachine.com)
Plugging my [YouTube channel](https://www.youtube.com/channel/UCS97tchJDq17Qms3cux8wcA)
2020-03-31 22:14:42 +02:00
## Install
2020-04-02 18:28:13 +02:00
Dependencies:
- neovim
- Node
- Python3
- Ripgrep
- fzf
- ranger
- hack-nerd-font
- ranger
- universal-ctags
### Install dependencies On MacOS
2020-03-31 22:14:42 +02:00
```
2020-04-02 21:41:30 +02:00
brew install node
brew install neovim
brew install ripgrep
brew install fzf
brew tap homebrew/cask-fonts
brew cask install font-hack-nerd-font
brew install ranger
brew install --HEAD universal-ctags/universal-ctags/universal-ctags
2020-03-31 22:14:42 +02:00
```
2020-04-02 18:28:13 +02:00
### Install dependencies on Linux
2020-03-31 22:14:42 +02:00
2020-04-02 18:28:13 +02:00
I assume you can figure it out based on the requirements smart guy
2020-03-31 22:14:42 +02:00
2020-04-02 18:28:13 +02:00
### Setting Node path and Python3 path
2020-03-31 22:14:42 +02:00
2020-04-02 18:28:13 +02:00
#### pythonpath
Open `modules/pythonpath.vim` and point it to a version of python that has neovim installed
example:
```
let g:python3_host_prog = expand("~/.miniconda/envs/neovim/bin/python3.8")
2020-03-31 22:14:42 +02:00
```
2020-04-02 18:28:13 +02:00
#### nodepath for Coc
2019-02-10 21:21:06 +01:00
2020-04-02 18:28:13 +02:00
Open `modules/nodepath.vim` and point it to a version of python that has neovim installed
2019-08-08 01:20:24 +02:00
2020-04-02 18:28:13 +02:00
example:
```
let g:coc_node_path = expand("~/.nvm/versions/node/v12.16.1/bin/node")
2019-08-08 01:20:24 +02:00
```
2020-04-02 18:28:13 +02:00
## Set up plugin manager
```
sh ~/.config/nvim/install/utils/installer.sh ~/.config/nvim/dein
2019-08-08 01:20:24 +02:00
```
2020-04-02 20:41:26 +02:00
## Install packages
2020-04-02 18:28:13 +02:00
You should now run `nvim` and wait while the package manager installs your plugins
## Post install
2019-08-08 01:20:24 +02:00
2020-04-02 18:28:13 +02:00
After install open Neovim and run the following:
2019-08-08 01:20:24 +02:00
2020-04-02 18:28:13 +02:00
```
:UpdateRemotePlugins
:checkhealth
```
## CoC Language support
2020-04-02 20:41:26 +02:00
You may need to do this if CoC says it can't find Javascript:
```
cd ~/.cache/dein/repos/github.com/neoclide/coc.nvim
git clean -xfd
yarn install --frozen-lockfile
```
[Official installation page](https://github.com/neoclide/coc.nvim/wiki/Install-coc.nvim)
[Extensions](https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions)
2020-04-02 18:28:13 +02:00
## ALE Linting
2019-08-08 01:20:24 +02:00
2019-08-11 04:31:27 +02:00
## TODO
2020-04-02 20:41:26 +02:00
- make better use of ftplugin
2020-04-01 23:15:46 +02:00
- Document node nonsense in order to install coc
- configure coc settings better
- need formatter for other languages
2020-04-02 21:43:24 +02:00
- set up ale
2020-04-01 23:15:46 +02:00
- Java support
- Need support for image in current ranger implementation
- https://github.com/kevinhwang91/rnvimr (Note Ueberzug doesn't work on mac which sucks, also neither does this plugin)
- Check out more coc extensions
- https://github.com/voldikss/coc-todolist
- VimWiki
2020-04-02 20:41:26 +02:00
- coc explorer and coc floating terminal are pretty cool
- look into save vim sessions
- create keymap file and move combinations from general
2020-04-02 21:43:24 +02:00
- ultisnips for autogenerate front matter with data and stuff
2019-08-11 04:31:27 +02:00
2020-04-02 18:28:13 +02:00
## Notes
install ripgrep" for gutentags to ignore .gitignore
2020-04-02 20:41:26 +02:00
If you get an error like this: `gutentags: ctags job failed, returned:` remove the tags directory in `~/.cache`