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 = { "─", "│", "─", "│", "┌", "┐", "┘", "└" },
|
preview = { "─", "│", "─", "│", "┌", "┐", "┘", "└" },
|
||||||
},
|
},
|
||||||
prompt_title = "",
|
prompt_title = "",
|
||||||
winblend = 20
|
winblend = 20,
|
||||||
|
width = 0.75
|
||||||
})
|
})
|
||||||
|
|
||||||
local builtin = require("telescope.builtin")
|
local builtin = require("telescope.builtin")
|
||||||
local pickers = {
|
local pickers = {
|
||||||
{
|
-- {
|
||||||
fn = builtin.find_files,
|
-- fn = builtin.find_files,
|
||||||
key = "o",
|
-- key = "o",
|
||||||
picker_opts = {
|
-- picker_opts = {
|
||||||
prompt_prefix = "Files> ",
|
-- prompt_prefix = "Files> ",
|
||||||
previewer = false,
|
-- previewer = false,
|
||||||
},
|
-- },
|
||||||
},
|
-- },
|
||||||
{
|
{
|
||||||
fn = builtin.current_buffer_fuzzy_find,
|
fn = builtin.current_buffer_fuzzy_find,
|
||||||
key = "f",
|
key = "f",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue