-
Notifications
You must be signed in to change notification settings - Fork 411
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
hrsh7th
committed
Apr 8, 2022
1 parent
27970d8
commit 801a9f9
Showing
4 changed files
with
21 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,11 @@ local WIDE_HEIGHT = 40 | |
return function() | ||
return { | ||
enabled = function() | ||
return vim.api.nvim_buf_get_option(0, 'buftype') ~= 'prompt' | ||
local disabled = false | ||
This comment has been minimized.
Sorry, something went wrong.
This comment has been minimized.
Sorry, something went wrong.
asmodeus812
|
||
disabled = disabled or (vim.api.nvim_buf_get_option(0, 'buftype') == 'prompt') | ||
disabled = disabled or (vim.fn.reg_recording() ~= '') | ||
disabled = disabled or (vim.fn.reg_executing() ~= '') | ||
return not disabled | ||
end, | ||
|
||
preselect = types.cmp.PreselectMode.Item, | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@hrsh7th I am facing some issue here maybe a race condition issues with telescope getting overridden with bindings from cmp. (for and Tab for example). For some reason the other cmp bindings are not getting applied, since this method returns enabled = false, but i can still see in the telescope buffer that only CR and Tab and Esc are getting bound by cmp.utils.keymaps_set_map