Updates lsp config

master
Jonathan Hodgson 3 years ago
parent c9d1320b54
commit c7721e7468
  1. 2
      nvim/.config/nvim/after/plugin/lsp.vim

@ -21,7 +21,7 @@ lua <<EOF
EOF
function! s:ConfigureBuffer()
nnoremap <buffer> <silent> <c-]> <cmd>lua vim.lsp.buf.definition()<CR>
nnoremap <buffer> <silent> <Leader>ld <cmd>lua vim.lsp.util.show_line_diagnostics()<CR>
nnoremap <buffer> <silent> <Leader>ld <cmd>lua vim.diagnostic.open_float()<CR>
nnoremap <buffer> <silent> K <cmd>lua vim.lsp.buf.hover()<CR>
nnoremap <buffer> <silent> gd <cmd>lua vim.lsp.buf.declaration()<CR>
endfunction

Loading…
Cancel
Save