Skip to content

Commit afc4f4d

Browse files
committed
fix: disable in macros
Closes #2161
1 parent 4d7a369 commit afc4f4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lua/blink/cmp/config/init.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ end
122122
--- Overrides
123123

124124
function M.enabled()
125+
-- disable in macros
126+
if vim.fn.reg_recording() ~= '' or vim.fn.reg_executing() ~= '' then return false end
127+
125128
if vim.api.nvim_get_mode().mode == 'c' or vim.fn.win_gettype() == 'command' then return config.cmdline.enabled end
126129
if vim.api.nvim_get_mode().mode == 't' then return config.term.enabled end
127130

0 commit comments

Comments
 (0)