diff options
| author | christianchiarulli <[email protected]> | 2021-07-10 00:09:33 -0400 | 
|---|---|---|
| committer | christianchiarulli <[email protected]> | 2021-07-10 00:09:33 -0400 | 
| commit | 92f6b59cda217a196941508e8d24186260b5d91b (patch) | |
| tree | 6d64d9a96cbde7db9c8696a80adb863d7fb9d2a6 | |
| parent | 25b3334ba32732028c18eb4bb58bf4f19c96cc8a (diff) | |
update some commands for jdtls
| -rw-r--r-- | ftplugin/java.lua | 17 | 
1 files changed, 15 insertions, 2 deletions
| diff --git a/ftplugin/java.lua b/ftplugin/java.lua index bba968b9..489deb3b 100644 --- a/ftplugin/java.lua +++ b/ftplugin/java.lua @@ -18,11 +18,24 @@ if O.lang.java.java_tools.active then      cmd = { JAVA_LS_EXECUTABLE, WORKSPACE_PATH .. vim.fn.fnamemodify(vim.fn.getcwd(), ":p:h:t") },    } +  vim.api.nvim_set_keymap( +    "n", +    "<leader>la", +    ":lua require('jdtls').code_action()<CR>", +    { noremap = true, silent = true } +  ) +  vim.api.nvim_set_keymap( +    "n", +    "<leader>lR", +    ":lua require('jdtls').code_action(false, 'refactor')<CR>", +    { noremap = true, silent = true } +  ) +    vim.cmd "command! -buffer JdtCompile lua require('jdtls').compile()"    vim.cmd "command! -buffer JdtUpdateConfig lua require('jdtls').update_project_config()" -  vim.cmd "command! -buffer JdtJol lua require('jdtls').jol()" +  -- vim.cmd "command! -buffer JdtJol lua require('jdtls').jol()"    vim.cmd "command! -buffer JdtBytecode lua require('jdtls').javap()" -  vim.cmd "command! -buffer JdtJshell lua require('jdtls').jshell()" +  -- vim.cmd "command! -buffer JdtJshell lua require('jdtls').jshell()"  else    local util = require "lspconfig/util" | 
