Skip to content

Commit 39b24e9

Browse files
committed
Update blink.cmp setting
Now that signature trigger is supported, we had to change the setting
1 parent c48750f commit 39b24e9

1 file changed

Lines changed: 6 additions & 14 deletions

File tree

init.lua

Lines changed: 6 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -274,19 +274,6 @@ vim.api.nvim_create_autocmd('TextYankPost', {
274274
end,
275275
})
276276

277-
-- add recipe for showing function signature after completion
278-
vim.api.nvim_create_autocmd('User', {
279-
pattern = 'BlinkCmpAccept',
280-
callback = function(ev)
281-
local item = ev.data.item
282-
if item.kind == require('blink.cmp.types').CompletionItemKind.Function then
283-
vim.defer_fn(function()
284-
require('blink.cmp').show_signature()
285-
end, 10)
286-
end
287-
end,
288-
})
289-
290277
-- [[ Install `lazy.nvim` plugin manager ]]
291278
-- See `:help lazy.nvim.txt` or https://github.com/folke/lazy.nvim for more info
292279
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
@@ -1042,7 +1029,12 @@ require('lazy').setup({
10421029
fuzzy = { implementation = 'prefer_rust_with_warning' },
10431030

10441031
-- Shows a signature help window while you type arguments for a function
1045-
signature = { enabled = true },
1032+
signature = {
1033+
enabled = true,
1034+
trigger = {
1035+
enabled = true,
1036+
},
1037+
},
10461038
cmdline = {
10471039
keymap = {
10481040
preset = 'cmdline',

0 commit comments

Comments
 (0)