From 096fc6aff516e98b5f8d33b7fc3d9f07e098e079 Mon Sep 17 00:00:00 2001 From: lucas barbieri Date: Tue, 26 Nov 2024 11:27:29 -0300 Subject: [PATCH] feat: add signatures and token showing --- init.lua | 6 ++++++ lua/jabuxas/remap.lua | 2 ++ 2 files changed, 8 insertions(+) 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