Feat: telescope use fzf

This commit is contained in:
Bertrand Benjamin 2021-11-20 20:42:23 +01:00
parent b151282f15
commit 7090ff15bf
2 changed files with 14 additions and 1 deletions

View File

@ -23,8 +23,19 @@ require('telescope').setup {
defaults = {
buffer_previewer_maker = new_maker,
file_ignore_patterns = {"**/*.pdf"},
},
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"
}
}
}
require('telescope').load_extension('fzf')
local map = vim.api.nvim_set_keymap
-- Find files using Telescope command-line sugar.

View File

@ -43,9 +43,11 @@ return require('packer').startup(function()
use {
'nvim-telescope/telescope.nvim',
config = [[require('config.telescope')]],
requires = { {'nvim-lua/plenary.nvim'} }
requires = { 'nvim-lua/plenary.nvim'}
}
use {'nvim-telescope/telescope-fzf-native.nvim', run = 'make' }
use {
'lervag/vimtex',
config = [[require('config.vimtex')]],