nvim: use telescope-fzf-native.nvim (for performance)

This commit is contained in:
inkch 2024-01-17 11:23:14 +09:00
parent 09db90af39
commit 2a8645eb8e
2 changed files with 10 additions and 0 deletions

View File

@ -0,0 +1 @@
return { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }

View File

@ -9,6 +9,13 @@ return {
i = { ["<esc>"] = 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', '<leader>,,', builtin.buffers, {})
vim.keymap.set('n', '<leader>,;', builtin.command_history, {})
vim.keymap.set('n', '<leader>,?', builtin.search_history, {})
require("telescope").load_extension('fzf')
end
}