Merge branch 'cscherrNT-master'
This commit is contained in:
commit
3fd834c899
|
@ -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', ]
|
||||
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']
|
||||
|
||||
" navigate between errors quickly
|
||||
nmap <silent> <C-k> <Plug>(coc-diagnostic-prev)
|
||||
|
@ -156,18 +156,20 @@ 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>
|
||||
nnoremap <silent><nowait> <leader>cp :<C-u>CocListResume<CR>
|
||||
" reload rust language server
|
||||
nnoremap <silent><nowait> <leader>crr :CocCommand rust-analyzer.reload<CR>
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
" 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
|
||||
|
@ -14,7 +13,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=hr " enable mouse for help file editing and hitting prompts
|
||||
set mouse=a " 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
|
||||
|
|
Loading…
Reference in New Issue