Files
neovim-config/lua/configs/lazytelescope-nvim.lua
T
2024-12-04 02:18:47 -07:00

46 lines
1.6 KiB
Lua

require("telescope").setup({
extensions = {
-- Type information can be loaded via 'https://github.com/folke/lazydev.nvim'
-- by adding the below two annotations:
---@module "telescope._extensions.lazy"
---@type TelescopeLazy.Config
lazy = {
-- Optional theme (the extension doesn't set a default theme)
theme = "ivy",
-- The below configuration options are the defaults
show_icon = true,
mappings = {
open_in_browser = "<C-o>",
open_in_file_browser = "<M-b>",
open_in_find_files = "<C-f>",
open_in_live_grep = "<C-g>",
open_in_terminal = "<C-t>",
open_plugins_picker = "<C-b>",
open_lazy_root_find_files = "<C-r>f",
open_lazy_root_live_grep = "<C-r>g",
change_cwd_to_plugin = "<C-c>d",
},
actions_opts = {
open_in_browser = {
auto_close = false,
},
change_cwd_to_plugin = {
auto_close = false,
},
},
terminal_opts = {
relative = "editor",
style = "minimal",
border = "rounded",
title = "Telescope lazy",
title_pos = "center",
width = 0.5,
height = 0.5,
},
-- Other telescope configuration options
},
},
})
require("telescope").load_extension("lazy")