-
Hi every, when I use function Error 22:13:55 msg_show.lua_error Error executing vim.schedule lua callback: ...hare/nvim/lazy/fzf-lua/lua/fzf-lua/previewer/builtin.lua:90: attempt to call field 'close_leaked_contexts' (a nil value)
stack traceback:
...hare/nvim/lazy/fzf-lua/lua/fzf-lua/previewer/builtin.lua:90: in function 'update'
...hare/nvim/lazy/fzf-lua/lua/fzf-lua/previewer/builtin.lua:878: in function 'update_ts_context'
...hare/nvim/lazy/fzf-lua/lua/fzf-lua/previewer/builtin.lua:961: in function <...hare/nvim/lazy/fzf-lua/lua/fzf-lua/previewer/builtin.lua:933>
...hare/nvim/lazy/fzf-lua/lua/fzf-lua/previewer/builtin.lua:963: in function 'do_syntax'
...hare/nvim/lazy/fzf-lua/lua/fzf-lua/previewer/builtin.lua:1108: in function 'preview_buf_post'
...hare/nvim/lazy/fzf-lua/lua/fzf-lua/previewer/builtin.lua:851: in function ''
vim/_editor.lua: in function <vim/_editor.lua:0> Configuration
return {
"ibhagwan/fzf-lua",
dependencies = { "nvim-tree/nvim-web-devicons" },
opts = {
winopts = {
backdrop = 100,
treesitter = false,
preview = {
default = "bat",
},
},
defaults = {
git_icons = false,
file_icons = false,
color_icons = false,
formatter = "path.filename_first",
},
keymap = {
fzf = {
["ctrl-e"] = "preview-down",
["ctrl-y"] = "preview-up",
["ctrl-q"] = "select-all+accept",
},
builtin = {
["ctrl-e"] = "preview-down",
["ctrl-y"] = "preview-up",
},
files = {
["ctrl-e"] = "preview-down",
["ctrl-y"] = "preview-up",
},
},
oldfiles = {
include_current_session = true,
},
grep = {
-- Ex: Find all occurrences of "enable" but only in the "plugins" directory.
-- ex: > enable --*/plugins/*
rg_glob = true, -- enable glob parsing
glob_flag = "--iglob", -- case insensitive globs
glob_separator = "%s%-%-", -- query separator pattern (lua): ' --'
},
},
config = function(_, opts)
require("fzf-lua").setup(opts)
end,
} |
Beta Was this translation helpful? Give feedback.
Answered by
ibhagwan
Dec 22, 2024
Replies: 1 comment 1 reply
-
Update your |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
hungdh9x
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Update your
nvim-treesitter-context
plugin, you’re using an old version that doesn’t contain this function.