Updates lsp config

Jonathan Hodgson 3 years ago
parent 1daa851d98
commit ecb5e8574c
  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