summaryrefslogtreecommitdiff
path: root/README.md
blob: cde8027189aebcaa784d0514b2615980652d66e2 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
# Nvim

Plugging my [blog](chrisatmachine.com)
Plugging my [YouTube channel](https://www.youtube.com/channel/UCS97tchJDq17Qms3cux8wcA)

## Install 

Dependencies:

- neovim
- Node
- Python3
- Ripgrep
- fzf
- ranger
- hack-nerd-font
- ranger
- universal-ctags

### Install dependencies On MacOS

```
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
```

### Install dependencies on Linux

I assume you can figure it out based on the requirements smart guy

### Setting Node path and Python3 path

#### 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")
```

#### nodepath for Coc

Open `modules/nodepath.vim` and point it to a version of python that has neovim installed

example:

```
let g:coc_node_path = expand("~/.nvm/versions/node/v12.16.1/bin/node")
```

## Set up plugin manager

```
sh ~/.config/nvim/install/utils/installer.sh ~/.config/nvim/dein
```

## Install packages

You should now run `nvim` and wait while the package manager installs your plugins


## Post install

After install open Neovim and run the following:

```
:UpdateRemotePlugins

:checkhealth
```

## CoC Language support


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)
[CoC Extensions](https://github.com/neoclide/coc.nvim/wiki/Using-coc-extensions)

## ALE Linting

## TODO 

- make better use of ftplugin
- Document node nonsense in order to install coc
- configure coc settings better 
- need formatter for other languages
- set up ale
- 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
- coc explorer and coc floating terminal are pretty cool
- look into save vim sessions
- create keymap file and move combinations from general
- ultisnips for autogenerate front matter with data and stuff
- setup blog with vimwiki

## Notes

install ripgrep" for gutentags to ignore .gitignore
If you get an error like this: `gutentags: ctags job failed, returned:` remove the tags directory in `~/.cache`