summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authoryushyin <yushyin@saga>2019-04-27 18:10:19 +0200
committeryushyin <yushyin@saga>2019-04-27 18:10:19 +0200
commit2124b7f876555cae95019488ffe337720e0fafcd (patch)
tree9681519a000145b66aa164e6702a478caf6e55c0
parentd12bc362dd422b51757ef32a6ddd73bc4795ea10 (diff)
downloaddotfiles-2124b7f876555cae95019488ffe337720e0fafcd.tar.gz
dotfiles-2124b7f876555cae95019488ffe337720e0fafcd.tar.xz
Vim: Add basic keymaps for vim-lsp
-rw-r--r--vim/vimrc8
1 files changed, 8 insertions, 0 deletions
diff --git a/vim/vimrc b/vim/vimrc
index 4883418..8253537 100644
--- a/vim/vimrc
+++ b/vim/vimrc
@@ -126,6 +126,14 @@ if dein#tap('vim-lsp')
\ 'whitelist': ['haskell'],
\ })
endif
+
+ nnoremap [Lsp] <Nop>
+ nmap <leader>l [Lsp]
+
+ nmap [Lsp]dd <Plug>(lsp-definition)
+ nmap [Lsp]s <Plug>(lsp-document-symbol)
+ nmap [Lsp]i <Plug>(lsp-document-diagnostics)
+ nmap [Lsp]r <Plug>(lsp-rename)
endif
if dein#tap('base16-vim')
set bg=dark