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")