File tree 3 files changed +8
-6
lines changed
3 files changed +8
-6
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ You can use it to set the tools below
9
9
2 . Change the shell: ` chsh -s /bin/zsh ` .
10
10
3 . Logout and then login
11
11
4 . We use [ vim-plug] ( https://github.com/junegunn/vim-plug ) to manage plugins here. Use ` :PlugInstall ` in vim to install packages.
12
- 5 . Install coc in vim: ` :CocInstall coc-rust-analyzer ` in vim
12
+ 5 . Install coc plugin in vim: ` :CocInstall coc-rust-analyzer ` and ` CocInstall coc-pyright ` in vim
13
13
- If there is coc error while opening vim, it might be node version issue. Please use nvm to update node.
14
14
15
15
# vim
@@ -32,7 +32,3 @@ git clone https://github.com/longld/peda.git ~/peda
32
32
echo " source ~/peda/peda.py" >> ~ /.gdbinit
33
33
```
34
34
35
- # TODO
36
-
37
- * Add C++ / Python coc
38
-
Original file line number Diff line number Diff line change 10
10
}
11
11
}
12
12
}
13
- }
13
+ },
14
+ "diagnostic.displayByAle" : true
14
15
}
Original file line number Diff line number Diff line change 14
14
" Author: evshary
15
15
16
16
" Updated:
17
+ " 2022.12.28 Able to use coc for Rust, C/C++, and Python
17
18
" 2022-12-12 Add some cheatsheet for vim
18
19
" 2022-09-06 Add fzf plugin
19
20
" 2019-09-28 Use vim-plug to replace NeoBundle and organize the order
@@ -258,6 +259,10 @@ nmap <silent> gr <Plug>(coc-references)
258
259
inoremap <silent> <expr> <CR> coc#pum#visible() ? coc#pum#confirm()
259
260
\ : "\<C-g> u\<CR> \<c-r> =coc#on_enter()\<CR> "
260
261
262
+ " disable ALE and only show from coc
263
+ " https://github.com/dense-analysis/ale#5iii-how-can-i-use-ale-and-cocnvim-together
264
+ let g: ale_disable_lsp = 1
265
+
261
266
" vim-plug
262
267
call plug#begin (' ~/.vim/plugged' )
263
268
" -------------my plugin----------------
You can’t perform that action at this time.
0 commit comments