ibhagwan / fzf-lua

Improved fzf.vim written in lua
GNU Affero General Public License v3.0
1.94k stars 133 forks source link

Bug: fail with error: Unknown option 'winfixbuf' #1303

Closed mangelozzi closed 1 day ago

mangelozzi commented 1 week ago

Context

It broke at this commit:

commit 0c4458b0f0d12970e54c8cd7c5ad60676edcf764 (HEAD -> main)
Author: bhagwan <bhagwan@disroot.org>
Date:   Fri May 24 08:37:14 2024 -0400

    feat: provide warning for ’winfixbuf’ (closes #1214)

This is the commit before that works:

commit b442569ab827f72e344236c598b02cb9dc754e9f (HEAD -> main)
Author: bhagwan <bhagwan@disroot.org>
Date:   Wed May 22 22:06:12 2024 -0400

    fix(previewer): term buffer title (closes #1213)

RTFM Checklist

Operating system

22.04.2-Ubuntu

Shell

bash

Neovim version (nvim --version)

NVIM v0.10.0-dev-fcfc87c Build type: RelWithDebInfo LuaJIT 2.1.1695266395 Run "nvim -V1 -v" for more info

Fzf version (fzf --version)

0.36.0 (2023011)

Output of :lua print(os.getenv('FZF_DEFAULT_OPTS'))

nil

Is the problem reproducible with mini.sh?

Fzf-lua configuration

sh -c "$(curl -s https://raw.githubusercontent.com/ibhagwan/fzf-lua/main/scripts/mini.sh)"

Describe the bug / steps to reproduce

  1. sh -c "$(curl -s https://raw.githubusercontent.com/ibhagwan/fzf-lua/main/scripts/mini.sh)"
  2. :FzfLua
  3. Select files
  4. Select a file
  5. Instead of opening the file you will get the error:
    [Fzf-lua] fn_selected threw an error: ...m/site/pack/vendor/start/fzf-lua/lua/fzf-lua/actions.lua:138: Unknown option 'winfixbuf'
    stack traceback:
    ^I...nvim/site/pack/vendor/start/fzf-lua/lua/fzf-lua/core.lua:235: in function <...nvim/site/pack/vendor/start/fzf-lua/lua/fzf-lua/core.lua:229>
    ^I[C]: in function '__index'
    ^I...m/site/pack/vendor/start/fzf-lua/lua/fzf-lua/actions.lua:138: in function 'vimcmd_file'
    ^I...m/site/pack/vendor/start/fzf-lua/lua/fzf-lua/actions.lua:190: in function 'action'
    ^I...m/site/pack/vendor/start/fzf-lua/lua/fzf-lua/actions.lua:88: in function 'act'
    ^I...nvim/site/pack/vendor/start/fzf-lua/lua/fzf-lua/core.lua:148: in function 'fn_selected'
    ^I...nvim/site/pack/vendor/start/fzf-lua/lua/fzf-lua/core.lua:228: in function <...nvim/site/pack/vendor/start/fzf-lua/lua/fzf-lua/core.lua:227>
    ^I[C]: in function 'xpcall'
    ^I...nvim/site/pack/vendor/start/fzf-lua/lua/fzf-lua/core.lua:227: in function <...nvim/site/pack/vendor/start/fzf-lua/lua/fzf-lua/core.lua:221>
ibhagwan commented 1 week ago

Update your neovim to vedsion 0.10 release, you’re using nightly version which didn’t yet include the winfixbuf commit.