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 }