summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-17 18:58:28 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2022-01-17 18:58:28 +0100
commit402fbd0d9dd4d05ce140f66451d52efccf744fe7 (patch)
treed552f6d88df621c22c22a084952ff3e8975e52d0
parent09a7015cb70dd7aa5e23f61d7eed79a4396764d3 (diff)
Add fzf plugin for telescope
-rw-r--r--lua/config/telescope.lua12
-rw-r--r--lua/plugins.lua1
2 files changed, 8 insertions, 5 deletions
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",