From 402fbd0d9dd4d05ce140f66451d52efccf744fe7 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Mon, 17 Jan 2022 18:58:28 +0100 Subject: Add fzf plugin for telescope --- lua/config/telescope.lua | 12 +++++++----- lua/plugins.lua | 1 + 2 files changed, 8 insertions(+), 5 deletions(-) (limited to 'lua') diff --git a/lua/config/telescope.lua b/lua/config/telescope.lua index b34b35f..8f155c9 100644 --- a/lua/config/telescope.lua +++ b/lua/config/telescope.lua @@ -89,10 +89,12 @@ telescope.setup({ -- builtin picker }, extensions = { - -- Your extension configuration goes here: - -- extension_name = { - -- extension_config_key = value, - -- } - -- please take a look at the readme of the extension you want to configure + 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" + }, }, }) diff --git a/lua/plugins.lua b/lua/plugins.lua index 66ce44c..bc1c198 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -22,6 +22,7 @@ return { { "jose-elias-alvarez/null-ls.nvim" }, { "nvim-telescope/telescope.nvim" }, + { "nvim-telescope/telescope-fzf-native.nvim", run = "make" }, { "nvim-treesitter/nvim-treesitter", run = ":TSUpdate", -- cgit v1.2.3-70-g09d2