nixpkgs/home/programs/neovim/plugins/telescope.lua
Daniel Siepmann 4ce11817ff
Switch back from fzf to telescope within neovim
As the fzf plugin was slow on large code bases.

This reverts commit cee10964f0.
2023-10-18 15:15:19 +02:00

32 lines
879 B
Lua

local telescope = require('telescope')
local actions = require('telescope.actions')
local actionsLayout = require('telescope.actions.layout')
telescope.setup({
defaults = {
layout_strategy = 'center',
layout_config = {
width = 0.6,
},
sorting_strategy = 'ascending',
default_mappings = {
i = {
["<C-j>"] = actions.move_selection_next,
["<C-k>"] = actions.move_selection_previous,
["<C-c>"] = actions.close,
["<CR>"] = actions.select_default,
["<C-h>"] = actions.which_key,
["<C-v>"] = actions.select_vertical,
["<C-p>"] = actionsLayout.toggle_preview,
},
},
preview = {
hide_on_startup = true,
},
},
})
telescope.load_extension('custom_runs')