Skip to content

Commit 499a882

Browse files
committed
Merge branch 'dev'
2 parents 9ad89f4 + 8d39b73 commit 499a882

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

lua/easycomplete/cmdline.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -221,6 +221,9 @@ function this.get_tab_returing_opword()
221221
end
222222

223223
function this.bind_cmdline_event()
224+
if this.check_noice() then
225+
return
226+
end
224227
local augroup = vim.api.nvim_create_augroup('CustomCmdlineComplete', { clear = true })
225228

226229
vim.api.nvim_create_autocmd("CmdlineEnter", {
@@ -325,6 +328,17 @@ function this.normalize_list(arr, word)
325328
return filtered_items
326329
end
327330

331+
function this.check_noice()
332+
local ok, nc = pcall(function()
333+
return require("noice.config")
334+
end)
335+
if not ok then
336+
return false
337+
else
338+
return nc.is_running()
339+
end
340+
end
341+
328342
function this.cmdline_handler(keys, key_str)
329343
if vim.g.easycomplete_cmdline_pattern == "" then
330344
return

0 commit comments

Comments
 (0)