diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2021-11-20 20:25:07 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2021-11-20 20:25:07 +0100 |
| commit | 31efe743072b868d4bb86ed709b85253db0b1f60 (patch) | |
| tree | 9fb46944cb2130b4e38e9af706c20d9fef4d25fb /plugin/lsp.vim | |
| parent | 742388c8ee0e68993d67beac362eaa98439f9394 (diff) | |
| download | nvim-conf-31efe743072b868d4bb86ed709b85253db0b1f60.tar.gz nvim-conf-31efe743072b868d4bb86ed709b85253db0b1f60.zip | |
Update config
Diffstat (limited to 'plugin/lsp.vim')
| -rw-r--r-- | plugin/lsp.vim | 11 |
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") |