From 1a2801061ace2d978344c327f7a04968aa06a523 Mon Sep 17 00:00:00 2001 From: bekaboo <18127878294@qq.com> Date: Wed, 24 Jan 2024 17:34:53 +0800 Subject: [PATCH] style(menu): make `once=true` autocmd option clearer --- lua/dropbar/menu.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/lua/dropbar/menu.lua b/lua/dropbar/menu.lua index a1377260..b9b42844 100644 --- a/lua/dropbar/menu.lua +++ b/lua/dropbar/menu.lua @@ -1084,6 +1084,7 @@ function dropbar_menu_t:fuzzy_find_open(opts) vim.api.nvim_create_autocmd({ 'BufUnload', 'BufWinLeave', 'WinLeave' }, { group = augroup, buffer = buf, + once = true, callback = function() if prev_cursor and vim.api.nvim_win_is_valid(self.win) then vim.schedule(function()