From 2a8645eb8e46c073a13a40823bf733c09374cab4 Mon Sep 17 00:00:00 2001 From: inkch Date: Wed, 17 Jan 2024 11:23:14 +0900 Subject: [PATCH] nvim: use telescope-fzf-native.nvim (for performance) --- dot_config/nvim/lua/plugins/telescope-fzf-native.lua | 1 + dot_config/nvim/lua/plugins/telescope.lua | 9 +++++++++ 2 files changed, 10 insertions(+) create mode 100644 dot_config/nvim/lua/plugins/telescope-fzf-native.lua diff --git a/dot_config/nvim/lua/plugins/telescope-fzf-native.lua b/dot_config/nvim/lua/plugins/telescope-fzf-native.lua new file mode 100644 index 0000000..9684b53 --- /dev/null +++ b/dot_config/nvim/lua/plugins/telescope-fzf-native.lua @@ -0,0 +1 @@ +return { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' } diff --git a/dot_config/nvim/lua/plugins/telescope.lua b/dot_config/nvim/lua/plugins/telescope.lua index 78be5ee..030b149 100644 --- a/dot_config/nvim/lua/plugins/telescope.lua +++ b/dot_config/nvim/lua/plugins/telescope.lua @@ -9,6 +9,13 @@ return { i = { [""] = actions.close }, }, }, + extensions = { + fzf = { + fuzzy = true, + override_generic_sorter = true, + override_file_sorter = true, + case_mode = "smart_case", + }, }) local builtin = require('telescope.builtin') @@ -19,5 +26,7 @@ return { vim.keymap.set('n', ',,', builtin.buffers, {}) vim.keymap.set('n', ',;', builtin.command_history, {}) vim.keymap.set('n', ',?', builtin.search_history, {}) + + require("telescope").load_extension('fzf') end }