diff --git a/init.lua b/init.lua index 9bd222c..fe1f8e2 100644 --- a/init.lua +++ b/init.lua @@ -97,6 +97,12 @@ require('lazy').setup({ main = 'ibl', opts = {}, }, + { + "ray-x/lsp_signature.nvim", + event = "VeryLazy", + opts = {}, + config = function(_, opts) require'lsp_signature'.setup(opts) end + }, -- "gc" to comment visual regions/lines { 'numToStr/Comment.nvim', opts = {} }, diff --git a/lua/jabuxas/remap.lua b/lua/jabuxas/remap.lua index a9a1074..84afdd8 100644 --- a/lua/jabuxas/remap.lua +++ b/lua/jabuxas/remap.lua @@ -60,6 +60,8 @@ keymap.set("n", "tA", "GoTestAdd", { desc = "Add Go Test for cu keymap.set("n", "gr", "lua vim.lsp.buf.rename()", { desc = "Renames all references to the symbol under the cursor" }) +keymap.set("n", "ts", "lua vim.lsp.buf.hover()", {desc = "show current token signature"}) + local nmap = function(keys, func, desc) if desc then desc = 'LSP: ' .. desc