diff options
author | Matthias Lehmann <[email protected]> | 2022-10-27 16:28:33 +0200 |
---|---|---|
committer | GitHub <[email protected]> | 2022-10-27 16:28:33 +0200 |
commit | f1b2c5fc8c2f2adbf111ab25fdb3e0e15442ff70 (patch) | |
tree | f53263a77fa220d3f728e88b28c55e507353aa98 /lua | |
parent | f1c469d9673f7ed5d1377774234b6917bc04780a (diff) |
fix(finders): use lunarvim basedir (#3332)
Diffstat (limited to 'lua')
-rw-r--r-- | lua/lvim/core/telescope/custom-finders.lua | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/lua/lvim/core/telescope/custom-finders.lua b/lua/lvim/core/telescope/custom-finders.lua index 9ab06326..37b7bda6 100644 --- a/lua/lvim/core/telescope/custom-finders.lua +++ b/lua/lvim/core/telescope/custom-finders.lua @@ -9,8 +9,6 @@ local _, actions = pcall(require, "telescope.actions") local _, previewers = pcall(require, "telescope.previewers") local _, make_entry = pcall(require, "telescope.make_entry") -local utils = require "lvim.utils" - function M.find_lunarvim_files(opts) opts = opts or {} local theme_opts = themes.get_ivy { @@ -19,7 +17,7 @@ function M.find_lunarvim_files(opts) prompt_prefix = ">> ", prompt_title = "~ LunarVim files ~", cwd = get_runtime_dir(), - search_dirs = { utils.join_paths(get_runtime_dir(), "lvim"), lvim.lsp.templates_dir }, + search_dirs = { get_lvim_base_dir(), lvim.lsp.templates_dir }, } opts = vim.tbl_deep_extend("force", theme_opts, opts) builtin.find_files(opts) @@ -33,7 +31,7 @@ function M.grep_lunarvim_files(opts) prompt_prefix = ">> ", prompt_title = "~ search LunarVim ~", cwd = get_runtime_dir(), - search_dirs = { utils.join_paths(get_runtime_dir(), "lvim"), lvim.lsp.templates_dir }, + search_dirs = { get_lvim_base_dir(), lvim.lsp.templates_dir }, } opts = vim.tbl_deep_extend("force", theme_opts, opts) builtin.live_grep(opts) |