Skip to content

Commit f759e87

Browse files
committed
feat(plug): show lsp signature via lsp-signature plugin
1 parent 1299c1e commit f759e87

File tree

3 files changed

+16
-3
lines changed

3 files changed

+16
-3
lines changed

lazy-lock.json

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
"cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" },
77
"dropbar": { "branch": "master", "commit": "669e325489202ae4da5a951314bbf8dbb20e7cff" },
88
"lazy.nvim": { "branch": "main", "commit": "460e1cd8f24e364d54543a4b0e83f6f4ec1f65fb" },
9+
"lsp_signature.nvim": { "branch": "master", "commit": "fc38521ea4d9ec8dbd4c2819ba8126cea743943b" },
910
"lspconfig": { "branch": "master", "commit": "a9bc587e9ae0cbcb3e90a2e9342f86b3b78c4408" },
1011
"markview.nvim": { "branch": "main", "commit": "f16486e49561740f33b6773df43c9bc2c3c34c7b" },
1112
"mini": { "branch": "main", "commit": "73af55e44865f2ede67a772b0972a5d34dcedd0e" },

lua/mappings.lua

+4-3
Original file line numberDiff line numberDiff line change
@@ -117,14 +117,15 @@ M.lsp = function()
117117
vim.ui.select = minipick.ui_select
118118

119119
-- Diagnostics mappings
120-
map("n", "[d", function()
120+
map("n", "dp", function()
121121
vim.diagnostic.goto_prev { float = false }
122122
end, "Diagnostics goto_prev")
123123

124-
map("n", "]d", function()
124+
map("n", "dn", function()
125125
vim.diagnostic.goto_next { float = false }
126126
end, "Diagnostics goto_next")
127-
map("n", "<leader>sd", vim.diagnostic.setloclist)
127+
128+
map("n", "<leader>ds", vim.diagnostic.setloclist, "Add buffer diagnostics to the location list.")
128129

129130
map("n", "<leader>hi", function()
130131
modules.toggle_inlay_hint() -- toggle inlay hint

lua/plugins/init.lua

+11
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,17 @@ local plugins = {
143143
end,
144144
},
145145

146+
{
147+
"ray-x/lsp_signature.nvim",
148+
event = "VeryLazy",
149+
opts = {},
150+
config = function()
151+
require("lsp_signature").setup {
152+
hint_prefix = "",
153+
}
154+
end,
155+
},
156+
146157
{
147158
"OXY2DEV/markview.nvim",
148159
ft = "markdown",

0 commit comments

Comments
 (0)