feat: add signatures and token showing
This commit is contained in:
parent
878ec43c7c
commit
096fc6aff5
6
init.lua
6
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 = {} },
|
||||
|
@ -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>",
|
||||
{ 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)
|
||||
if desc then
|
||||
desc = 'LSP: ' .. desc
|
||||
|
Loading…
Reference in New Issue
Block a user