blob: 11757350332f4d3aceaa745dfa9303fa4dbb1452 (
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
|
source ~/.config/nvim/init.vim
packadd! onedark.vim
" packadd! fzf
" packadd! fzf.vim
packadd! vim-jsx-pretty
" packadd! copilot.vim
" --> Fzf
" source ~/.config/nvim/user/fzf.vim
" set rtp+=/usr/share/vim/vimfiles
" --> Zeal
source ~/.config/nvim/user/zeal.vim
" --> Onedark theme
source ~/.config/nvim/user/onedark.vim
" --> Vimspector
source ~/.config/nvim/user/vimspector.vim
" --> COC
autocmd! User coc.nvim source $HOME/.config/nvim/user/coc-onload.vim
let g:coc_config_home = '$HOME/.config/nvim/user'
let g:coc_data_home = '$HOME/.local/share/nvim/site/coc'
let g:coc_global_extensions = [
\ 'coc-json',
\ 'coc-marketplace',
\ 'coc-css',
\ 'coc-tsserver',
\ 'coc-pyright',
\ 'coc-sh',
\ ]
nnoremap <silent><nowait> <leader>ca :<C-u>CocList diagnostics<cr>
nnoremap <silent><nowait> <leader>ce :<C-u>CocList extensions<cr>
nnoremap <silent><nowait> <leader>cc :<C-u>CocList commands<cr>
nnoremap <silent><nowait> <leader>co :<C-u>CocList outline<cr>
nnoremap <silent><nowait> <leader>cs :<C-u>CocList -I symbols<cr>
nnoremap <silent><nowait> <leader>cj :<C-u>CocNext<CR>
nnoremap <silent><nowait> <leader>ck :<C-u>CocPrev<CR>
nnoremap <silent><nowait> <leader>cp :<C-u>CocListResume<CR>
nnoremap <leader>cm :CocList marketplace<CR>
nnoremap <leader>cff :Format<CR>
inoremap <silent><expr><c-l> coc#refresh()
nnoremap <leader><C-r> :source ~/.config/nvim/coc.vim<CR>
" autocmd VimLeave * call SaveSess()
" autocmd VimEnter * nested call RestoreSess()
AirlineTheme
CocList extensions
|