dotfiles/nvim/lua/plugins/telescope.lua

28 lines
691 B
Lua
Raw Normal View History

2022-02-21 14:15:15 +00:00
local actions = require("telescope.actions")
require('telescope').setup({
2022-02-23 20:31:57 +00:00
defaults = {
mappings = {
i = {
["<C-j>"] = actions.move_selection_next,
2022-04-02 08:50:59 +00:00
["<C-k>"] = actions.move_selection_previous,
["<ESC>"] = actions.close,
["<C-c>"] = actions.close
2022-02-23 20:31:57 +00:00
},
2022-04-02 08:50:59 +00:00
n = {
["<ESC>"] = actions.close,
['<C-c>'] = actions.close
}
2022-02-23 20:31:57 +00:00
}
},
extensions = {
fzf = {
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true
}
}
2022-02-21 14:15:15 +00:00
})
2022-02-23 20:31:57 +00:00
require('telescope').load_extension('fzf')