chore(nvim): standardise Telescope themes
This commit is contained in:
parent
13a3c83138
commit
06ef19823b
|
@ -98,7 +98,7 @@ function M.file_browser()
|
|||
end
|
||||
|
||||
function M.find_files()
|
||||
local opts = themes.get_ivy {
|
||||
local opts = {
|
||||
file_ignore_patterns = { ".git/", "**/{core,contrib}", "vendor" },
|
||||
}
|
||||
|
||||
|
@ -106,16 +106,17 @@ function M.find_files()
|
|||
end
|
||||
|
||||
function M.find_all_files()
|
||||
local opts = themes.get_ivy {
|
||||
local opts = {
|
||||
no_ignore = true,
|
||||
prompt_title = "All Files",
|
||||
}
|
||||
|
||||
require("telescope.builtin").find_files(opts)
|
||||
end
|
||||
|
||||
function M.git_files()
|
||||
local opts = themes.get_ivy {
|
||||
file_ignore_patterns = { ".git/", "vendor" },
|
||||
local opts = {
|
||||
file_ignore_patterns = { ".git/", "**/{core,contrib}", "vendor" },
|
||||
hidden = true,
|
||||
no_ignore = true,
|
||||
}
|
||||
|
@ -133,7 +134,7 @@ function M.live_grep()
|
|||
end
|
||||
|
||||
function M.oldfiles()
|
||||
local opts = themes.get_ivy {
|
||||
local opts = {
|
||||
prompt_title = "History",
|
||||
}
|
||||
|
||||
|
|
|
@ -24,6 +24,7 @@ end
|
|||
|
||||
telescope_mapper("<leader>fb", "buffers")
|
||||
telescope_mapper("<leader>fd", "find_files")
|
||||
telescope_mapper("<leader>fD", "find_all_files")
|
||||
telescope_mapper("<leader>fe", "file_browser")
|
||||
telescope_mapper("<leader>ff", "current_buf")
|
||||
telescope_mapper("<leader>fg", "git_files")
|
||||
|
|
Reference in a new issue