Skip to content

Commit 5cc68a2

Browse files
phanenibhagwan
authored andcommitted
fix: allow TermOpen to detect fzf filetype
fzf.vim also defer filetype https://github.com/junegunn/fzf/blob/821b8e70a80e3ea96772a4dda36311b19b7171b4/plugin/fzf.vim#L976 But maybe no reason we cannot set filetype before jobstart #2532 (reply in thread)
1 parent 2832277 commit 5cc68a2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

lua/fzf-lua/fzf.lua

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,8 @@ function M.raw_fzf(contents, fzf_cli_args, opts)
6262
table.insert(cmd, libuv.shellescape(outputtmpname))
6363

6464
if not opts.is_fzf_tmux then
65+
utils.eventignore(function() vim.bo.filetype = "fzf" end)
66+
6567
-- A pesky bug I fixed upstream and was merged in 0.11/0.10.2:
6668
-- <C-c> in term buffers was making neovim freeze, as a workaround in older
6769
-- versions (not perfect could still hang) we map <C-c> to <Esc> locally

0 commit comments

Comments
 (0)