Skip to content

Commit a6761dd

Browse files
committed
fix: setlocal filetype fzf instead of global (#1609)
1 parent 7de67da commit a6761dd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lua/fzf-lua/fzf.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function M.raw_fzf(contents, fzf_cli_args, opts)
287287

288288
-- fzf-tmux spawns outside neovim, don't set filetype/insert mode
289289
if not opts.is_fzf_tmux then
290-
vim.cmd [[set ft=fzf]]
290+
vim.bo.filetype = "fzf"
291291

292292
-- https://github.com/neovim/neovim/pull/15878
293293
-- Since patch-8.2.3461 which was released with 0.6 neovim distinguishes between

0 commit comments

Comments
 (0)