diff options
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 |
