From 0dc3c5030b778d5256cad5d9529e9ecf7fbfb233 Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Sun, 14 Mar 2021 15:10:28 -0400 Subject: The Lua Journey Begins... --- plug-config/lsp-config.vim | 36 ------------------------------------ 1 file changed, 36 deletions(-) delete mode 100644 plug-config/lsp-config.vim (limited to 'plug-config/lsp-config.vim') diff --git a/plug-config/lsp-config.vim b/plug-config/lsp-config.vim deleted file mode 100644 index 6c6d7cf3..00000000 --- a/plug-config/lsp-config.vim +++ /dev/null @@ -1,36 +0,0 @@ -" LSP config (the mappings used in the default file don't quite work right) -nnoremap gd lua vim.lsp.buf.definition() -nnoremap gD lua vim.lsp.buf.declaration() -nnoremap gr lua vim.lsp.buf.references() -nnoremap gi lua vim.lsp.buf.implementation() -nnoremap ca :Lspsaga code_action -" nnoremap K lua vim.lsp.buf.hover() -nnoremap K :Lspsaga hover_doc -nnoremap lua vim.lsp.buf.signature_help() -" nnoremap lua vim.lsp.diagnostic.goto_prev() -" nnoremap lua vim.lsp.diagnostic.goto_next() -nnoremap :Lspsaga diagnostic_jump_prev -nnoremap :Lspsaga diagnostic_jump_next -" autoformat -autocmd BufWritePre *.js lua vim.lsp.buf.formatting_sync(nil, 100) -autocmd BufWritePre *.jsx lua vim.lsp.buf.formatting_sync(nil, 100) -autocmd BufWritePre *.lua lua vim.lsp.buf.formatting_sync(nil, 100) -" autocmd BufWritePre *.py lua vim.lsp.buf.formatting_sync(nil, 100) - -" -- `code_action` is a superset of vim.lsp.buf.code_action and you'll be able to -" -- use this mapping also with other language servers - -autocmd FileType java nnoremap ca lua require('jdtls').code_action() - - - -" -- If using nvim-dap -" -- This requires java-debug and vscode-java-test bundles, see install steps in this README further below. -" nnoremap df lua require'jdtls'.test_class() -" nnoremap dn lua require'jdtls'.test_nearest_method() - -command! -buffer JdtCompile lua require('jdtls').compile() -command! -buffer JdtUpdateConfig lua require('jdtls').update_project_config() -command! -buffer JdtJol lua require('jdtls').jol() -command! -buffer JdtBytecode lua require('jdtls').javap() -command! -buffer JdtJshell lua require('jdtls').jshell() -- cgit v1.2.3