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