From 4e3e7cacb6c02b812ea73ca0c3a00d20de0d5e94 Mon Sep 17 00:00:00 2001 From: Warwick Date: Tue, 9 Feb 2021 10:12:30 +0000 Subject: [PATCH] added document diagnostic shortcut --- plugins.vim | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins.vim b/plugins.vim index aeab6ff..0f98d81 100644 --- a/plugins.vim +++ b/plugins.vim @@ -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 :NERDTreeToggle " Tab completion inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" @@ -61,6 +64,7 @@ function! s:on_lsp_buffer_enabled() abort nmap gr (lsp-references) nmap gi (lsp-implementation) nmap gt (lsp-type-definition) + nmap gj (lsp-document-diagnostics) nmap rn (lsp-rename) nmap [g (lsp-previous-diagnostic) nmap ]g (lsp-next-diagnostic)