Skip to content
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

Ability to configure altenative picker (fzf-lua) #87

Closed
caliguIa opened this issue Apr 23, 2024 · 11 comments · Fixed by #112
Closed

Ability to configure altenative picker (fzf-lua) #87

caliguIa opened this issue Apr 23, 2024 · 11 comments · Fixed by #112

Comments

@caliguIa
Copy link

Hi, it would be great if we could configure alternative pickers (fzf-lua) instead of telescope.

@adalessa
Copy link
Owner

Hey, I have not used fzf picker, how this is built it can be extended, in the development branch there is the concept of revolvers that will easily provide de list to be use in the pickers. What will need to be review are the actions.

@caliguIa
Copy link
Author

Thanks, I will attempt to take a look soon. Cheers

@adalessa
Copy link
Owner

@caliguIa if you have any question related to the plugin feel free to do it, I can provide some support to it.

@caliguIa
Copy link
Author

Thanks @adalessa appreciate it, I will attempt to take a look at it this week if I get the time.

@rqpt
Copy link

rqpt commented Aug 2, 2024

I'm interested in tackling this issue, as I also prefer using fzf-lua over telescope these days.

@adalessa
Copy link
Owner

adalessa commented Aug 2, 2024

@rqpt nice to hear the interest, just FYI I am working on a re-design on the structure, with a container system similar to laravel one, in case you want to take a look to it is on the feature/container branch

@Bleksak
Copy link
Contributor

Bleksak commented Aug 31, 2024

The easiest way to do this is to use vim.ui.select instead of telescope integration and register fzf/telescope as vim.ui.select

@Bleksak
Copy link
Contributor

Bleksak commented Oct 14, 2024

Hi all, we finally managed to at least add vim.ui.select as the picker in the development branch. If you still want this feature, please try it out.

vim.ui.select is a very basic picker, it doesn't support previews

I will take a look at fzf-lua this week

@adalessa
Copy link
Owner

It's already on master, I pulled the trigger, now is tagged as 3.0

@Dieal
Copy link

Dieal commented Dec 30, 2024

It's already on master, I pulled the trigger, now is tagged as 3.0

Sorry for the ignorance, but how do I enable it instead of telescope? I can't find it anywhere in the docs
This is my configuration:

  {
    "adalessa/laravel.nvim",
    dependencies = {
      "tpope/vim-dotenv",
      "MunifTanjim/nui.nvim",
      "kevinhwang91/promise-async",
    },
    lazy = true,
    ft = { "php" },
    cmd = { "Laravel" },
    keys = {
      { "<leader>la", ":Laravel artisan<cr>" },
      { "<leader>lr", ":Laravel routes<cr>" },
      { "<leader>lm", ":Laravel related<cr>" },
    },
    opts = {},
    config = true,
  }

@Bleksak
Copy link
Contributor

Bleksak commented Dec 30, 2024

@Dieal this should do it:

opts = {
  features = {
    pickers = {
      provider = 'fzf-lua'
    }
  }
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants