nvim: use telescope-fzf-native.nvim (for performance)
This commit is contained in:
parent
09db90af39
commit
2a8645eb8e
1
dot_config/nvim/lua/plugins/telescope-fzf-native.lua
Normal file
1
dot_config/nvim/lua/plugins/telescope-fzf-native.lua
Normal file
@ -0,0 +1 @@
|
|||||||
|
return { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }
|
@ -9,6 +9,13 @@ return {
|
|||||||
i = { ["<esc>"] = actions.close },
|
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')
|
local builtin = require('telescope.builtin')
|
||||||
@ -19,5 +26,7 @@ return {
|
|||||||
vim.keymap.set('n', '<leader>,,', builtin.buffers, {})
|
vim.keymap.set('n', '<leader>,,', builtin.buffers, {})
|
||||||
vim.keymap.set('n', '<leader>,;', builtin.command_history, {})
|
vim.keymap.set('n', '<leader>,;', builtin.command_history, {})
|
||||||
vim.keymap.set('n', '<leader>,?', builtin.search_history, {})
|
vim.keymap.set('n', '<leader>,?', builtin.search_history, {})
|
||||||
|
|
||||||
|
require("telescope").load_extension('fzf')
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user