feat: use fzf in Telescope

This commit is contained in:
Michael Mandl 2022-02-23 21:31:57 +01:00
parent 3825a97554
commit 4b560280a6
Signed by: mandlm
GPG key ID: 4AA25D647AA54CC7
2 changed files with 19 additions and 8 deletions

View file

@ -107,6 +107,7 @@ return require('packer').startup(function(use)
requires = {{'nvim-lua/plenary.nvim'}},
config = function() require('plugins.telescope') end
})
use({'nvim-telescope/telescope-fzf-native.nvim', run ='make'})
-- automatic pairs
use({"Raimondi/delimitMate"})

View file

@ -5,8 +5,18 @@ require('telescope').setup({
mappings = {
i = {
["<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')