Skip to content

is there a way to detect fzf-lua is active in a mapping ? #1699

Answered by ibhagwan
dprophete asked this question in Q&A
Discussion options

You must be logged in to vote

You can do so in two ways, exclude these mappings for filetype=fzf (as fzf-lua sets the main win file type to fzf).

Use the winopts.on_create lua callback to map the key to itself with remap=false thus “unmapping” the keys.

Edit: 3rd option: have an autocmd for FileType fzf doing the same as the above.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
0 replies
Answer selected by dprophete
Comment options

You must be logged in to vote
2 replies
@dprophete
Comment options

@ibhagwan
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants