mirror of
https://github.com/nmasur/dotfiles
synced 2024-11-30 04:35:37 +00:00
50 lines
1.2 KiB
Lua
50 lines
1.2 KiB
Lua
|
-- ===========================================================================
|
||
|
-- Custom Functions
|
||
|
-- ===========================================================================
|
||
|
|
||
|
grep_notes = function()
|
||
|
local opts = {
|
||
|
prompt_title = "Search Notes",
|
||
|
cwd = "$NOTES_PATH",
|
||
|
}
|
||
|
require("telescope.builtin").live_grep(opts)
|
||
|
end
|
||
|
|
||
|
find_notes = function()
|
||
|
local opts = {
|
||
|
prompt_title = "Find Notes",
|
||
|
cwd = "$NOTES_PATH",
|
||
|
}
|
||
|
require("telescope.builtin").find_files(opts)
|
||
|
end
|
||
|
|
||
|
find_downloads = function()
|
||
|
local opts = {
|
||
|
prompt_title = "Find Downloads",
|
||
|
cwd = "~/Downloads",
|
||
|
}
|
||
|
require("telescope").extensions.file_browser.file_browser(opts)
|
||
|
end
|
||
|
|
||
|
choose_project = function()
|
||
|
local opts = require("telescope.themes").get_ivy({
|
||
|
layout_config = {
|
||
|
bottom_pane = {
|
||
|
height = 10,
|
||
|
},
|
||
|
},
|
||
|
})
|
||
|
require("telescope").extensions.project.project(opts)
|
||
|
end
|
||
|
|
||
|
command_history = function()
|
||
|
local opts = require("telescope.themes").get_ivy({
|
||
|
layout_config = {
|
||
|
bottom_pane = {
|
||
|
height = 15,
|
||
|
},
|
||
|
},
|
||
|
})
|
||
|
require("telescope.builtin").command_history(opts)
|
||
|
end
|