-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for fzf-lua
#20
Comments
I'm not sure how to handle this, because if I use only Anyway, I was able to create a similar picker in return {
"ibhagwan/fzf-lua",
dependencies = { "nvim-tree/nvim-web-devicons" },
config = function()
local fzf_lua = require "fzf-lua"
local apple_music = require "apple-music"
fzf_lua.setup {}
local custom_list = function()
local track_list = apple_music.get_tracks()
-- print(vim.inspect(track_list))
fzf_lua.fzf_exec(track_list, {
prompt = "Tracks with FZF ",
previewer = false,
actions = {
["default"] = function(selected)
-- print(vim.inspect(selected)) -- returns track in table
apple_music.play_track(selected[1])
end,
},
})
end
vim.keymap.set("n", "<leader>fa", custom_list)
end,
}
Screen.Recording.2024-07-29.at.23.14.51.mp4I just installed it with |
I was hoping that we could put the dependent I am assuming that if a function with a require never gets called then we don't really need whatever is required by that function. I'm not really familiar with Lua though and haven't tried this at all. |
We can also do something like |
#18 Some people would rather use
fzf-lua
as their picker.The text was updated successfully, but these errors were encountered: