summaryrefslogtreecommitdiff
path: root/lua/lvim/core/telescope/custom-finders.lua
diff options
context:
space:
mode:
authorLee Marlow <[email protected]>2021-11-14 06:00:59 -0700
committerGitHub <[email protected]>2021-11-14 14:00:59 +0100
commita9bf545e0fc76882d99a3539f317155ce6c76d35 (patch)
treeab90a2410c59177838863e5084267e61676331c5 /lua/lvim/core/telescope/custom-finders.lua
parentb0a9ee720a64f4ec1563e7358d58506a714d39fe (diff)
Bugfix: allow LunarVim changelog to work outside the lvim directory (#1952)
Diffstat (limited to 'lua/lvim/core/telescope/custom-finders.lua')
-rw-r--r--lua/lvim/core/telescope/custom-finders.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/lua/lvim/core/telescope/custom-finders.lua b/lua/lvim/core/telescope/custom-finders.lua
index c3347fd0..68fd0b07 100644
--- a/lua/lvim/core/telescope/custom-finders.lua
+++ b/lua/lvim/core/telescope/custom-finders.lua
@@ -40,7 +40,7 @@ function M.grep_lunarvim_files(opts)
end
function M.view_lunarvim_changelog()
- local opts = {}
+ local opts = { cwd = get_lvim_base_dir() }
opts.entry_maker = make_entry.gen_from_git_commits(opts)
pickers.new(opts, {
@@ -52,8 +52,6 @@ function M.view_lunarvim_changelog()
"log",
"--pretty=oneline",
"--abbrev-commit",
- "--",
- ".",
},
opts
),