feat(nvim): config updates
This commit is contained in:
parent
50c3a1df03
commit
2cf0eb8cfc
9 changed files with 86 additions and 78 deletions
|
|
@ -97,10 +97,16 @@ function M.file_browser()
|
|||
require("telescope").extensions.file_browser.file_browser(opts)
|
||||
end
|
||||
|
||||
function M.fd()
|
||||
function M.find_files()
|
||||
local opts = themes.get_ivy {
|
||||
file_ignore_patterns = { ".git/", "**/{core,contrib}", "vendor" },
|
||||
}
|
||||
|
||||
require("telescope.builtin").find_files(opts)
|
||||
end
|
||||
|
||||
function M.find_all_files()
|
||||
local opts = themes.get_ivy {
|
||||
file_ignore_patterns = { ".git/" },
|
||||
hidden = true,
|
||||
no_ignore = true,
|
||||
}
|
||||
|
||||
|
|
@ -118,7 +124,7 @@ function M.git_files()
|
|||
end
|
||||
|
||||
function M.live_grep()
|
||||
require("telescope.builtin").live_grep {
|
||||
require("telescope").extensions.live_grep_args.live_grep_args {
|
||||
file_ignore_patterns = { ".git/" },
|
||||
hidden = true,
|
||||
no_ignore = true,
|
||||
|
|
@ -126,6 +132,14 @@ function M.live_grep()
|
|||
}
|
||||
end
|
||||
|
||||
function M.oldfiles()
|
||||
local opts = themes.get_ivy {
|
||||
prompt_title = "History",
|
||||
}
|
||||
|
||||
require("telescope").extensions.frecency.frecency(opts)
|
||||
end
|
||||
|
||||
return setmetatable({}, {
|
||||
__index = function(_, k)
|
||||
reloader()
|
||||
|
|
|
|||
Reference in a new issue