aboutsummaryrefslogtreecommitdiffstats
path: root/plugin/lsp.vim
diff options
context:
space:
mode:
Diffstat (limited to 'plugin/lsp.vim')
-rw-r--r--plugin/lsp.vim11
1 files changed, 2 insertions, 9 deletions
diff --git a/plugin/lsp.vim b/plugin/lsp.vim
index 2378d84..82d9a8f 100644
--- a/plugin/lsp.vim
+++ b/plugin/lsp.vim
@@ -1,12 +1,3 @@
-fun! LspLocationList()
- lua vim.lsp.diagnostic.set_loclist({open_loclist = false})
-endfun
-
-augroup alpha_lsp
- autocmd!
- autocmd! BufWrite,BufEnter,InsertLeave * :call LspLocationList()
-augroup END
-
nnoremap <leader>vd :lua vim.lsp.buf.definition()<CR>
nnoremap <leader>vsh :lua vim.lsp.buf.signature_help()<CR>
nnoremap <leader>vh :lua vim.lsp.buf.hover()<CR>
@@ -31,6 +22,8 @@ lua << EOF
local function on_attach()
vim.api.nvim_set_keymap('n', 'K', ':lua vim.lsp.buf.hover()<cr>', {noremap = true})
+
+ require "lsp_signature".on_attach()
end
local lsp_installer = require("nvim-lsp-installer")