You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix: disable blink.cmp remaps when telescope prompt is open (#104)
resolves#102
* disable blink.cmp remaps when telescope prompt is open
* make it a bit cleaner
* implemented iteration over exclude_filetypes table
* add `exclude_filetypes` config option to disable keymaps for specific filetypes
- Implemented `exclude_filetypes` as a config option with default values
(`TelescopePrompt`
- Improved performance by using a map for filetype lookups instead of
iterating over a list
- Keymaps are now disabled for buffers matching the excluded filetypes)
* add dynamic plugin disabling based on file type
- Implemented autocommand for BufEnter and InsertEnter events to disable
the plugin dynamically for specific file types.
- Added a global variable `vim.g.blinkcmp_enabled` to track whether the
plugin is enabled.
- Updated relevant parts of the plugin to return early if the plugin is
disabled for a file type.
* remove old unused code
* refactor: remove blinkcmp_enabled flag and directly utilize utils.is_special_buffer() for buffer handling
* refactor: remove extra calls to is_special_buffer where logic already exists
---------
Co-authored-by: Scott McKendry <[email protected]>
0 commit comments