File tree 3 files changed +21
-7
lines changed 3 files changed +21
-7
lines changed Original file line number Diff line number Diff line change @@ -280,9 +280,22 @@ set nobackup
280
280
set nowritebackup
281
281
set updatetime = 300
282
282
set shortmess += c
283
- vmap <leader> f <Plug> (coc-format-selected)
284
- nmap <leader> f <Plug> (coc-format-selected)
285
-
283
+ " Symbol renaming.
284
+ nmap <leader> rn <Plug> (coc-rename)
285
+ " GoTo code navigation.
286
+ nmap <silent> gd <Plug> (coc-definition)
287
+ nmap <silent> gy <Plug> (coc-type-definition)
288
+ nmap <silent> gi <Plug> (coc-implementation)
289
+ nmap <silent> gr <Plug> (coc-references)
290
+ " Use `[g` and `]g` to navigate diagnostics
291
+ " Use `:CocDiagnostics` to get all diagnostics of current buffer in location list.
292
+ nmap <silent> [g <Plug> (coc-diagnostic-prev)
293
+ nmap <silent> ]g <Plug> (coc-diagnostic-next)
294
+ " Format
295
+ vmap <leader> f <Plug> (coc-format)
296
+ nmap <leader> f <Plug> (coc-format)
297
+ " Highlight the symbol and its references when holding the cursor.
298
+ autocmd CursorHold * silent call CocActionAsync (' highlight' )
286
299
" Switch to opened buffer position, including tab
287
300
set switchbuf = usetab
288
301
Original file line number Diff line number Diff line change @@ -4,9 +4,9 @@ echo "Removing..."
4
4
5
5
rm -rf $HOME /.vim $HOME /.zsh $HOME /.oh-my-zsh
6
6
7
- rm -rf $HOME /.vimrc $HOME /.zshrc
7
+ rm -rf $HOME /.vimrc $HOME /.zshrc*
8
8
9
- rm -rf $HOME /.config/nvim
9
+ rm -rf $HOME /.config/nvim $HOME /.config/coc
10
10
11
11
rm -rf $HOME /.config/flake8 $HOME /.config/pep8
12
12
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ npm config set prefix '~/.npm-global'
28
28
29
29
echo " Setting up pyenv"
30
30
eval " $( pyenv init -) "
31
- pyenv install 3.7.8
32
- pyenv install 2.7.17
31
+ pyenv install -s 3.7.8
32
+ pyenv install -s 2.7.17
33
33
pyenv shell 2.7.17 && pip install -U pip neovim flake8 autopep8 pep8 python-language-server
34
34
pyenv shell 3.7.8 && pip install -U pip neovim flake8 autopep8 pep8 python-language-server
35
35
pyenv global 3.7.8
@@ -46,5 +46,6 @@ export ZSH="$HOME/.zsh/oh-my-zsh"
46
46
echo " Setting up configurations ..."
47
47
cp -l -f -T -r $PWD /home $HOME
48
48
cp -l -f -T -r $PWD /config $HOME /.config
49
+ vim -E -s -u " $HOME /.vimrc" +PlugInstall +qall
49
50
50
51
echo " Done installation."
You can’t perform that action at this time.
0 commit comments