Compare commits

..

No commits in common. "3fd834c899c430d2cc5a782da23f5693828feb34" and "b3ae39a8308be023e319db488c5febbe33f6f8c5" have entirely different histories.

2 changed files with 11 additions and 12 deletions

View file

@ -1,4 +1,4 @@
let g:coc_global_extensions = ['coc-json', 'coc-git', 'coc-clangd', 'coc-cmake', 'coc-css', 'coc-floaterm', 'coc-fzf-preview', 'coc-html', 'coc-json', 'coc-lists', 'coc-lua', 'coc-pyright', 'coc-rust-analyzer', 'coc-sh', 'coc-sql', 'coc-markdownlint']
let g:coc_global_extensions = ['coc-json', 'coc-git', 'coc-clangd', 'coc-cmake', 'coc-css', 'coc-floaterm', 'coc-fzf-preview', 'coc-html', 'coc-json', 'coc-lists', 'coc-lua', 'coc-pyright', 'coc-rust-analyzer', 'coc-sh', 'coc-sql', ]
" navigate between errors quickly
nmap <silent> <C-k> <Plug>(coc-diagnostic-prev)
@ -156,20 +156,18 @@ command! -nargs=0 OR :call CocActionAsync('runCommand', 'editor.action.org
" Mappings for CoCList
" Show all diagnostics
nnoremap <silent><nowait> <leader>ca :<C-u>CocList diagnostics<cr>
nnoremap <silent><nowait> <leader>CA :<C-u>CocList diagnostics<cr>
" Manage extensions
nnoremap <silent><nowait> <leader>ce :<C-u>CocList extensions<cr>
nnoremap <silent><nowait> <leader>CE :<C-u>CocList extensions<cr>
" Show commands
nnoremap <silent><nowait> <leader>cc :<C-u>CocList commands<cr>
nnoremap <silent><nowait> <leader>CC :<C-u>CocList commands<cr>
" Find symbol of current document
nnoremap <silent><nowait> <leader>co :<C-u>CocList outline<cr>
nnoremap <silent><nowait> <leader>CO :<C-u>CocList outline<cr>
" Search workspace symbols
nnoremap <silent><nowait> <leader>cs :<C-u>CocList -I symbols<cr>
nnoremap <silent><nowait> <leader>CS :<C-u>CocList -I symbols<cr>
" Do default action for next item
nnoremap <silent><nowait> <leader>cj :<C-u>CocNext<CR>
nnoremap <silent><nowait> <leader>CJ :<C-u>CocNext<CR>
" Do default action for previous item
nnoremap <silent><nowait> <leader>ck :<C-u>CocPrev<CR>
nnoremap <silent><nowait> <leader>CK :<C-u>CocPrev<CR>
" Resume latest coc list
nnoremap <silent><nowait> <leader>cp :<C-u>CocListResume<CR>
" reload rust language server
nnoremap <silent><nowait> <leader>crr :CocCommand rust-analyzer.reload<CR>
nnoremap <silent><nowait> <leader>CP :<C-u>CocListResume<CR>

View file

@ -1,6 +1,7 @@
" GENERAL CONFIGS ----------------------------------------------------------------------------------
syntax on " syntax highlighting
set nocompatible " disable compatibility to old-time vi
set mouse=v " middle-click paste with
set number
set nocompatible
set hlsearch " highlight search
@ -13,7 +14,7 @@ set autoindent " indent a new line the same amount as the line just
set number " add line numbers
set wildmode=longest,list " get bash-like tab completions
set cc=100 " set an 100 column border for good coding style
set mouse=a " enable mouse for help file editing and hitting prompts
set mouse=hr " enable mouse for help file editing and hitting prompts
set cursorline " highlight current cursor line
set ttyfast " Speed up scrolling in Vim
set fdm=indent " folding method syntax