Test out fzf over telescope for switching files, might migrate all functionality to fzf over telescope if I like it
This commit is contained in:
parent
50c97081ea
commit
ce0dfec2ea
2 changed files with 29 additions and 9 deletions
19
home/.config/nvim/lua/plugs/fzf.lua
Normal file
19
home/.config/nvim/lua/plugs/fzf.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
"ibhagwan/fzf-lua",
|
||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||
opts = {},
|
||||
config = function()
|
||||
local fzf = require("fzf-lua")
|
||||
require("utils").add_keymaps({
|
||||
n = {
|
||||
["<leader>to"] = {
|
||||
cmd = function()
|
||||
fzf.files({
|
||||
git_icons = false,
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
|
|
@ -29,19 +29,20 @@ return {
|
|||
preview = { "─", "│", "─", "│", "┌", "┐", "┘", "└" },
|
||||
},
|
||||
prompt_title = "",
|
||||
winblend = 20
|
||||
winblend = 20,
|
||||
width = 0.75
|
||||
})
|
||||
|
||||
local builtin = require("telescope.builtin")
|
||||
local pickers = {
|
||||
{
|
||||
fn = builtin.find_files,
|
||||
key = "o",
|
||||
picker_opts = {
|
||||
prompt_prefix = "Files> ",
|
||||
previewer = false,
|
||||
},
|
||||
},
|
||||
-- {
|
||||
-- fn = builtin.find_files,
|
||||
-- key = "o",
|
||||
-- picker_opts = {
|
||||
-- prompt_prefix = "Files> ",
|
||||
-- previewer = false,
|
||||
-- },
|
||||
-- },
|
||||
{
|
||||
fn = builtin.current_buffer_fuzzy_find,
|
||||
key = "f",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue