nixos/config/nvim/lua/plugins/telescope.lua
2023-02-20 16:43:33 +00:00

38 lines
1.1 KiB
Lua

return {
"nvim-telescope/telescope.nvim",
branch = "0.1.x",
dependencies = {
{ "nvim-lua/plenary.nvim" },
{
"nvim-telescope/telescope-fzf-native.nvim",
build = "make",
},
{ "rcarriga/nvim-notify" },
},
cmd = "Telescope",
config = function()
require "telescope.actions"
local trouble = require "trouble.providers.telescope"
require("telescope").setup {
defaults = {
layout_strategy = "cursor",
mappings = {
i = { ["<c-t>"] = trouble.open_with_trouble },
n = { ["<c-t>"] = trouble.open_with_trouble },
},
},
extensions = {
fzf = {
fuzzy = true, -- false will only do exact matching
override_generic_sorter = true, -- override the generic sorter
override_file_sorter = true, -- override the file sorter
},
},
}
require("telescope").load_extension "fzf"
require("telescope").load_extension "notify"
end,
}