-
I'd like to preview some string content from in memory table not actual file, is it possible to preview a string directly? -- something like this would be good
fzf.fzf_exec({ { name = "1: foo", content = "print [[hello from lua]]", filetype = 'lua' } }) |
Beta Was this translation helpful? Give feedback.
Answered by
ibhagwan
May 23, 2025
Replies: 1 comment 7 replies
-
:lua FzfLua.fzf_exec({"1: name"}, { preview = function(sel, opts) return "content" end}) Have a separate metadata table for the preview, parse the index using |
Beta Was this translation helpful? Give feedback.
7 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes but you will need to use the builtin neovim win preview, see the advanced wiki how to do that.