Skip to content

Commit

Permalink
cmp: add signature help
Browse files Browse the repository at this point in the history
Signed-off-by: Avimitin <[email protected]>

Former-commit-id: af47f06 [formerly af47f06 [formerly 7f852a5]]
Former-commit-id: 4e929f4
Former-commit-id: d714599
  • Loading branch information
Avimitin committed Nov 3, 2022
1 parent dba8ac1 commit 471d776
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lua/plugins/completion/config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ M.nvim_cmp_config = function()
item.kind = ""
item.menu = "Vim"
return item
elseif entry.source.name == "nvim_lsp_signature_help" then
item.kind = "Property"
end
item.menu = item.kind
item.kind = kind_icons[item.kind]
Expand Down Expand Up @@ -113,6 +115,7 @@ M.nvim_cmp_config = function()
},
sources = {
{ name = "nvim_lsp", priority = 99 },
{ name = "nvim_lsp_signature_help" },
{ name = "vsnip" },
{ name = "path" },
},
Expand Down
7 changes: 7 additions & 0 deletions lua/plugins/completion/repos.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,13 @@ local repos = {
},
},

{
"hrsh7th/cmp-nvim-lsp-signature-help",
after = {
"nvim-cmp",
},
},

-- completion source for word in current buffer
{
"hrsh7th/cmp-buffer",
Expand Down

0 comments on commit 471d776

Please sign in to comment.