File tree Expand file tree Collapse file tree 1 file changed +14
-0
lines changed
Expand file tree Collapse file tree 1 file changed +14
-0
lines changed Original file line number Diff line number Diff line change @@ -221,6 +221,9 @@ function this.get_tab_returing_opword()
221221end
222222
223223function 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
326329end
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+
328342function this .cmdline_handler (keys , key_str )
329343 if vim .g .easycomplete_cmdline_pattern == " " then
330344 return
You can’t perform that action at this time.
0 commit comments