From 49b1c88332b83b79b44bb790d439aa100179d9aa Mon Sep 17 00:00:00 2001 From: historia <[not public]> Date: Mon, 22 Jun 2026 16:33:14 -0400 Subject: feat: supports searching multiple directories configured via simple-denote.nvim. existing config is backwards compatible and works the same. --- lua/denote-fzf-lua.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'lua/denote-fzf-lua.lua') diff --git a/lua/denote-fzf-lua.lua b/lua/denote-fzf-lua.lua index 167ecb3..977bb23 100644 --- a/lua/denote-fzf-lua.lua +++ b/lua/denote-fzf-lua.lua @@ -90,7 +90,7 @@ function M.search_files(options) vim.api.nvim_command("edit " .. vim.fn.fnameescape(filename)) end, } - local dir = vim.fn.expand(options.dir) + local dir = vim.fn.expand(vim.g.denote_dir or options.dir) fzflua.fzf_exec(script .. " " .. dir, opts) end @@ -100,7 +100,7 @@ function M.search_contents(options) return end local opts = {} - opts.cwd = vim.fn.expand(options.dir) + opts.cwd = vim.fn.expand(vim.g.denote_dir or options.dir) opts.previewer = "builtin" opts.fzf_opts = options.fzf_lua_opts.fzf_opts opts.actions = fzflua.defaults.actions.files -- cgit v1.2.3