feat: add signatures and token showing

This commit is contained in:
lucas barbieri 2024-11-26 11:27:29 -03:00
parent 878ec43c7c
commit 096fc6aff5
2 changed files with 8 additions and 0 deletions

View File

@ -97,6 +97,12 @@ require('lazy').setup({
main = 'ibl', main = 'ibl',
opts = {}, opts = {},
}, },
{
"ray-x/lsp_signature.nvim",
event = "VeryLazy",
opts = {},
config = function(_, opts) require'lsp_signature'.setup(opts) end
},
-- "gc" to comment visual regions/lines -- "gc" to comment visual regions/lines
{ 'numToStr/Comment.nvim', opts = {} }, { 'numToStr/Comment.nvim', opts = {} },

View File

@ -60,6 +60,8 @@ keymap.set("n", "<leader>tA", "<cmd>GoTestAdd<CR>", { desc = "Add Go Test for cu
keymap.set("n", "<leader>gr", "<cmd>lua vim.lsp.buf.rename()<CR>", keymap.set("n", "<leader>gr", "<cmd>lua vim.lsp.buf.rename()<CR>",
{ desc = "Renames all references to the symbol under the cursor" }) { desc = "Renames all references to the symbol under the cursor" })
keymap.set("n", "<leader>ts", "<cmd>lua vim.lsp.buf.hover()<CR>", {desc = "show current token signature"})
local nmap = function(keys, func, desc) local nmap = function(keys, func, desc)
if desc then if desc then
desc = 'LSP: ' .. desc desc = 'LSP: ' .. desc