Skip to content

Commit

Permalink
feat!: rename BlinkCmpCompletionMenu* autocmds to BlinkCmpMenu*
Browse files Browse the repository at this point in the history
  • Loading branch information
Saghen committed Dec 30, 2024
1 parent 26bcbc8 commit fa4312c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/recipes.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,15 +120,15 @@ completion = {

```lua
vim.api.nvim_create_autocmd('User', {
pattern = 'BlinkCmpCompletionMenuOpen',
pattern = 'BlinkCmpMenuOpen',
callback = function()
require("copilot.suggestion").dismiss()
vim.b.copilot_suggestion_hidden = true
end,
})

vim.api.nvim_create_autocmd('User', {
pattern = 'BlinkCmpCompletionMenuClose',
pattern = 'BlinkCmpMenuClose',
callback = function()
vim.b.copilot_suggestion_hidden = false
end,
Expand Down
6 changes: 3 additions & 3 deletions lua/blink/cmp/completion/windows/menu.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,11 +34,11 @@ local menu = {
items = {},
context = nil,
auto_show = config.auto_show,
open_emitter = require('blink.cmp.lib.event_emitter').new('completion_menu_open', 'BlinkCmpCompletionMenuOpen'),
close_emitter = require('blink.cmp.lib.event_emitter').new('completion_menu_close', 'BlinkCmpCompletionMenuClose'),
open_emitter = require('blink.cmp.lib.event_emitter').new('completion_menu_open', 'BlinkCmpMenuOpen'),
close_emitter = require('blink.cmp.lib.event_emitter').new('completion_menu_close', 'BlinkCmpMenuClose'),
position_update_emitter = require('blink.cmp.lib.event_emitter').new(
'completion_menu_position_update',
'BlinkCmpCompletionMenuPositionUpdate'
'BlinkCmpMenuPositionUpdate'
),
}

Expand Down

0 comments on commit fa4312c

Please sign in to comment.