Jelajahi Sumber

Bugfix: allow LunarVim changelog to work outside the lvim directory (#1952)

Lee Marlow 3 tahun lalu
induk
melakukan
a9bf545e0f
1 mengubah file dengan 1 tambahan dan 3 penghapusan
  1. 1 3
      lua/lvim/core/telescope/custom-finders.lua

+ 1 - 3
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
     ),