feat: use fzf in Telescope
This commit is contained in:
parent
3825a97554
commit
4b560280a6
@ -107,6 +107,7 @@ return require('packer').startup(function(use)
|
|||||||
requires = {{'nvim-lua/plenary.nvim'}},
|
requires = {{'nvim-lua/plenary.nvim'}},
|
||||||
config = function() require('plugins.telescope') end
|
config = function() require('plugins.telescope') end
|
||||||
})
|
})
|
||||||
|
use({'nvim-telescope/telescope-fzf-native.nvim', run ='make'})
|
||||||
|
|
||||||
-- automatic pairs
|
-- automatic pairs
|
||||||
use({"Raimondi/delimitMate"})
|
use({"Raimondi/delimitMate"})
|
||||||
|
@ -1,12 +1,22 @@
|
|||||||
local actions = require("telescope.actions")
|
local actions = require("telescope.actions")
|
||||||
|
|
||||||
require('telescope').setup({
|
require('telescope').setup({
|
||||||
defaults = {
|
defaults = {
|
||||||
mappings = {
|
mappings = {
|
||||||
i = {
|
i = {
|
||||||
["<C-j>"] = actions.move_selection_next,
|
["<C-j>"] = actions.move_selection_next,
|
||||||
["<C-k>"] = actions.move_selection_previous,
|
["<C-k>"] = actions.move_selection_previous
|
||||||
},
|
},
|
||||||
},
|
n = {['<C-c>'] = actions.close}
|
||||||
},
|
}
|
||||||
|
},
|
||||||
|
extensions = {
|
||||||
|
fzf = {
|
||||||
|
fuzzy = true,
|
||||||
|
override_generic_sorter = true,
|
||||||
|
override_file_sorter = true
|
||||||
|
}
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require('telescope').load_extension('fzf')
|
||||||
|
Reference in New Issue
Block a user