Nvim: fixes to jdtls setup

Added runtimes and fixed lsp signature plugin
This commit is contained in:
Marko Korhonen 2023-09-05 10:22:09 +03:00
parent a489d13bf0
commit e6b348bda0
Signed by: FunctionalHacker
GPG key ID: A7F78BCB859CD890
3 changed files with 26 additions and 3 deletions

View file

@ -57,8 +57,7 @@ function m.setup()
end
function m.map_keys()
local wk = require("which-key")
wk.register({
require("which-key").register({
g = {
name = "Go to",
d = { vim.lsp.buf.definition, "Definition" },
@ -79,6 +78,7 @@ function m.map_keys()
"List folders",
},
},
k = { vim.lsp.buf.signature_help, "Signature help" },
D = { vim.lsp.buf.type_definition, "Type definition" },
rn = { vim.lsp.buf.rename, "Rename symbol" },
ca = { vim.lsp.buf.code_action, "Code action" },