Nvim: fixes to jdtls setup
Added runtimes and fixed lsp signature plugin
This commit is contained in:
parent
09b1a3a47a
commit
a6e95a4719
3 changed files with 26 additions and 3 deletions
|
@ -99,7 +99,14 @@ local plugins = {
|
|||
{ "mfussenegger/nvim-dap", config = require("plugins.dap") },
|
||||
|
||||
-- Display function signature
|
||||
"ray-x/lsp_signature.nvim",
|
||||
{
|
||||
"ray-x/lsp_signature.nvim",
|
||||
event = "VeryLazy",
|
||||
opts = { always_trigger = true },
|
||||
config = function(_, opts)
|
||||
require("lsp_signature").setup(opts)
|
||||
end,
|
||||
},
|
||||
|
||||
-- Snippets plugin
|
||||
{
|
||||
|
|
|
@ -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" },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue