diff --git a/nvim/.config/nvim/plugin/lsp.vim b/nvim/.config/nvim/plugin/lsp.vim new file mode 100644 index 00000000..45261fca --- /dev/null +++ b/nvim/.config/nvim/plugin/lsp.vim @@ -0,0 +1,22 @@ +" Check that we are running inside nvim +if !has('nvim') + finish +endif +lua < lua vim.lsp.buf.definition() + nnoremap ld lua vim.lsp.util.show_line_diagnostics() + nnoremap K lua vim.lsp.buf.hover() + nnoremap gd lua vim.lsp.buf.declaration() +endfunction +if has('autocmd') + augroup JHLanguageClientAutocmds + autocmd! + autocmd FileType go,vim call s:ConfigureBuffer() + augroup END +endif