Skip to content

Commit 0504b8e

Browse files
committed
fix: emit filetype event after update_statusline
To override/custom statusline ``` augroup fzf autocmd! autocmd FileType fzf setlocal statusline= augroup END ```
1 parent 1eba927 commit 0504b8e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lua/fzf-lua/fzf.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -179,11 +179,11 @@ function M.raw_fzf(contents, fzf_cli_args, opts)
179179

180180
-- fzf-tmux spawns outside neovim, don't set filetype/insert mode
181181
if not opts.is_fzf_tmux then
182-
vim.bo.filetype = "fzf"
183-
184182
local fzfwin = utils.fzf_winobj()
185183
if fzfwin then fzfwin:update_statusline() end
186184

185+
vim.bo.filetype = "fzf"
186+
187187
-- See note in "ModeChanged" above
188188
-- NOTE: feedkeys hack not required since
189189
-- https://github.com/neovim/neovim/commit/3621af9b970c80d2a6ff36569d7495391599c334

0 commit comments

Comments
 (0)