From fa4312c11f9ab102333f5a18f1a30af5ae636c04 Mon Sep 17 00:00:00 2001 From: Liam Dyer Date: Mon, 30 Dec 2024 14:30:21 -0500 Subject: [PATCH] feat!: rename `BlinkCmpCompletionMenu*` autocmds to `BlinkCmpMenu*` --- docs/recipes.md | 4 ++-- lua/blink/cmp/completion/windows/menu.lua | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/docs/recipes.md b/docs/recipes.md index cab818d8..9c6c2f26 100644 --- a/docs/recipes.md +++ b/docs/recipes.md @@ -120,7 +120,7 @@ completion = { ```lua vim.api.nvim_create_autocmd('User', { - pattern = 'BlinkCmpCompletionMenuOpen', + pattern = 'BlinkCmpMenuOpen', callback = function() require("copilot.suggestion").dismiss() vim.b.copilot_suggestion_hidden = true @@ -128,7 +128,7 @@ vim.api.nvim_create_autocmd('User', { }) vim.api.nvim_create_autocmd('User', { - pattern = 'BlinkCmpCompletionMenuClose', + pattern = 'BlinkCmpMenuClose', callback = function() vim.b.copilot_suggestion_hidden = false end, diff --git a/lua/blink/cmp/completion/windows/menu.lua b/lua/blink/cmp/completion/windows/menu.lua index 7bcc2351..6b8d2fe4 100644 --- a/lua/blink/cmp/completion/windows/menu.lua +++ b/lua/blink/cmp/completion/windows/menu.lua @@ -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' ), }