nixos/config/nvim/lua/config_plugins/config_telescope.lua

34 lines
1 KiB
Lua
Raw Normal View History

2022-11-07 16:41:35 +00:00
require('telescope.actions')
local trouble = require('trouble.providers.telescope')
2022-11-07 16:41:35 +00:00
require('telescope').setup {
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
case_mode = "smart_case", -- or "ignore_case" or "respect_case"
-- the default case_mode is "smart_case"
},
aerial = {
show_nesting = {
["_"] = false,
python = true,
json = true,
yaml = true,
},
},
},
defaults = {
mappings = {
i = { ["<c-t>"] = trouble.open_with_trouble },
n = { ["<c-t>"] = trouble.open_with_trouble },
},
},
}
require('telescope').load_extension('fzf')
require('telescope').load_extension('aerial')
require('telescope').load_extension('notify')
require('telescope').load_extension('projects')