From 542efacba99f7ceac3a1ed5f7863debdf32fcbff Mon Sep 17 00:00:00 2001 From: Tony Blyler Date: Wed, 8 Dec 2021 11:21:12 -0500 Subject: [PATCH] Make telescope have fzf syntax --- home/.config/nvim/lua/plugins/config/telescope.lua | 14 ++++++++++++++ home/.config/nvim/lua/plugins/init.lua | 5 ++++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 home/.config/nvim/lua/plugins/config/telescope.lua diff --git a/home/.config/nvim/lua/plugins/config/telescope.lua b/home/.config/nvim/lua/plugins/config/telescope.lua new file mode 100644 index 0000000..aa2c060 --- /dev/null +++ b/home/.config/nvim/lua/plugins/config/telescope.lua @@ -0,0 +1,14 @@ +local telescope = require("telescope") + +telescope.setup({ + extensions = { + fzf = { + fuzzy = true, + override_generic_sorter = true, + override_file_sorter = true, + case_mode = "smart_case", + }, + }, +}) + +telescope.load_extension("fzf") diff --git a/home/.config/nvim/lua/plugins/init.lua b/home/.config/nvim/lua/plugins/init.lua index c1cdeab..4f1a32a 100644 --- a/home/.config/nvim/lua/plugins/init.lua +++ b/home/.config/nvim/lua/plugins/init.lua @@ -16,7 +16,9 @@ require "paq" { "lewis6991/gitsigns.nvim"; -- git gutter "nvim-lua/plenary.nvim"; -- dependency of lewis6991/gitsigns.nvim, nvim-telescope/telescope.nvim - "nvim-telescope/telescope.nvim"; -- fzf searching + "nvim-telescope/telescope.nvim"; -- nice searching + {"nvim-telescope/telescope-fzf-native.nvim", run="zsh -c make"}; -- enable fzf searching for telescope + "phaazon/hop.nvim"; -- easymotion navigation @@ -61,4 +63,5 @@ require("plugins.config.lightbulb") require("plugins.config.lspinstall") require("plugins.config.mini") require("plugins.config.statusline") +require("plugins.config.telescope") require("plugins.config.treesitter")