diff options
| author | historia <[not public]> | 2026-06-22 16:33:14 -0400 |
|---|---|---|
| committer | historia <[not public]> | 2026-06-22 16:33:14 -0400 |
| commit | 49b1c88332b83b79b44bb790d439aa100179d9aa (patch) | |
| tree | 99ac86de58e826d96e31700b1842d72a86a884bb /lua/denote-fzf-lua.lua | |
| parent | f7e92893e0bddcbff82e11784fd620886fa1297d (diff) | |
| download | denote-fzf-lua-49b1c88332b83b79b44bb790d439aa100179d9aa.tar.gz | |
feat: supports searching multiple directories configured via simple-denote.nvim. existing config is backwards compatible and works the same.
Diffstat (limited to 'lua/denote-fzf-lua.lua')
| -rw-r--r-- | lua/denote-fzf-lua.lua | 4 |
1 files changed, 2 insertions, 2 deletions
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 |
