too many things
This commit is contained in:
77
.config/nvim/lua/plugins/telescope.lua
Normal file
77
.config/nvim/lua/plugins/telescope.lua
Normal file
@@ -0,0 +1,77 @@
|
||||
return {
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
tag = "0.1.2",
|
||||
lazy = true,
|
||||
keys = {
|
||||
{ "<leader><leader>", mode = { "n" }, "<cmd>Telescope smart_open<cr>", desc = "smart_open" },
|
||||
{ "<leader>ff", mode = { "n" }, "<cmd>Telescope find_files<cr>", desc = "Find File" },
|
||||
{ "<leader>fh", mode = { "n" }, "<cmd>Telescope help_tags<cr>", desc = "Find Help" },
|
||||
{ "<leader>fs", mode = { "n" }, "<cmd>Telescope live_grep<cr>", desc = "Live Grep" },
|
||||
},
|
||||
cmd = { "Telescope" },
|
||||
opts = {
|
||||
defaults = {
|
||||
sorting_strategy = "descending",
|
||||
scroll_strategy = "limit",
|
||||
scroll_speed = 7,
|
||||
layout_strategy = "vertical",
|
||||
layout_config = {
|
||||
prompt_position = "top",
|
||||
preview_cutoff = 0,
|
||||
horizontal = {
|
||||
height = 0.9,
|
||||
},
|
||||
vertical = {
|
||||
prompt_position = "top",
|
||||
height = 0.9,
|
||||
width = 0.8,
|
||||
mirror = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
extensions = {
|
||||
smart_open = {
|
||||
match_algorithm = "fzy",
|
||||
disable_devicons = false,
|
||||
},
|
||||
fzy_native = {},
|
||||
},
|
||||
pickers = {
|
||||
buffers = {
|
||||
mappings = {
|
||||
n = {
|
||||
["<leader>ww"] = "which_key",
|
||||
["dd"] = function() require("telescope.actions").delete_buffer() end,
|
||||
},
|
||||
i = {
|
||||
["<c-h>"] = "which_key",
|
||||
["<c-x>"] = function() require("telescope.actions").delete_buffer() end,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
{
|
||||
"danielfalk/smart-open.nvim",
|
||||
branch = "0.3.x",
|
||||
lazy = true,
|
||||
-- keys = { "<leader><leader>", "<cmd>Telescope smart_open<cr>", desc = "smart open" },
|
||||
config = {
|
||||
function() require("telescope").load_extension("smart_open") end,
|
||||
},
|
||||
},
|
||||
{ "nvim-lua/plenary.nvim", lazy = true },
|
||||
{ "MunifTanjim/nui.nvim", lazy = true },
|
||||
-- Only required if using match_algorithm fzf
|
||||
-- { "nvim-telescope/telescope-fzf-native.nvim", build = "make" },
|
||||
-- faster and better matching than fzf
|
||||
{
|
||||
"nvim-telescope/telescope-fzy-native.nvim",
|
||||
config = {
|
||||
function() require("telescope").load_extension("fzy_native") end,
|
||||
},
|
||||
},
|
||||
{ "kkharji/sqlite.lua", lazy = true },
|
||||
}
|
||||
Reference in New Issue
Block a user