added document diagnostic shortcut
This commit is contained in:
parent
ca56e61b4f
commit
4e3e7cacb6
1 changed files with 5 additions and 1 deletions
|
|
@ -18,11 +18,12 @@ Plugin 'jiangmiao/auto-pairs'
|
|||
Plugin 'scrooloose/nerdtree'
|
||||
Plugin 'tpope/vim-surround'
|
||||
Plugin 'dhruvasagar/vim-dotoo'
|
||||
" Language C++
|
||||
" Language C++/glsl
|
||||
"Plugin 'ycm-core/YouCompleteMe'
|
||||
Plugin 'prabirshrestha/vim-lsp'
|
||||
Plugin 'mattn/vim-lsp-settings'
|
||||
Plugin 'prabirshrestha/asyncomplete.vim'
|
||||
Plugin 'tikhomirov/vim-glsl'
|
||||
|
||||
|
||||
" All of your Plugins must be added before the following line
|
||||
|
|
@ -40,6 +41,8 @@ filetype plugin indent on " required
|
|||
" see :h vundle for more details or wiki for FAQ
|
||||
" Put your non-Plugin stuff after this line
|
||||
|
||||
" NerdTree
|
||||
nnoremap <C-o> :NERDTreeToggle<CR>
|
||||
" Tab completion
|
||||
inoremap <expr> <Tab> pumvisible() ? "\<C-n>" : "\<Tab>"
|
||||
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"
|
||||
|
|
@ -61,6 +64,7 @@ function! s:on_lsp_buffer_enabled() abort
|
|||
nmap <buffer> gr <plug>(lsp-references)
|
||||
nmap <buffer> gi <plug>(lsp-implementation)
|
||||
nmap <buffer> gt <plug>(lsp-type-definition)
|
||||
nmap <buffer> gj <plug>(lsp-document-diagnostics)
|
||||
nmap <buffer> <leader>rn <plug>(lsp-rename)
|
||||
nmap <buffer> [g <Plug>(lsp-previous-diagnostic)
|
||||
nmap <buffer> ]g <Plug>(lsp-next-diagnostic)
|
||||
|
|
|
|||
Loading…
Reference in a new issue