linrongbin16 / fzfx.nvim

A Neovim fuzzy finder that updates on every keystroke.
https://linrongbin16.github.io/fzfx.nvim/
MIT License
122 stars 5 forks source link

ENOENT: no such file or directory: $HOME/.config/bat/themes/FzfxNvimOnedark.tmTheme #575

Closed jetm closed 7 months ago

jetm commented 7 months ago

Getting the below error in the last commit:

Error executing luv callback:
...l/share/nvim/lazy/fzfx.nvim/lua/fzfx/commons/fileios.lua:411: failed to open(w) file "$HOME/.config/bat/themes/Fzf
xNvimOnedark.tmTheme": "ENOENT: no such file or directory: $HOME/.config/bat/themes/FzfxNvimOnedark.tmTheme"
stack traceback:
        [C]: in function 'error'
        ...l/share/nvim/lazy/fzfx.nvim/lua/fzfx/commons/fileios.lua:411: in function <...l/share/nvim/lazy/fzfx.nvim/lua/fzfx/
commons/fileios.lua:409>
        [C]: in function 'nvim_cmd'
        /usr/share/nvim/runtime/filetype.lua:20: in function </usr/share/nvim/runtime/filetype.lua:19>
        [C]: in function 'nvim_buf_call'
        /usr/share/nvim/runtime/filetype.lua:19: in function </usr/share/nvim/runtime/filetype.lua:10>

As a workaround, I created the expected file, but it looks like it's assuming to have the same bat theme as the Neovim theme.

linrongbin16 commented 7 months ago

ckecking

linrongbin16 commented 7 months ago

hi @jetm , I fixed this issue in #576 , please pull main branch and try again!

jetm commented 7 months ago

@linrongbin16 It looks good. Thank you for the quick fix.