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

Is there a way to filter out some colorschemes? #810

Closed
Einenlum opened this issue Jul 5, 2023 · 3 comments
Closed

Is there a way to filter out some colorschemes? #810

Einenlum opened this issue Jul 5, 2023 · 3 comments
Labels
feature request New feature

Comments

@Einenlum
Copy link

Einenlum commented Jul 5, 2023

Info

  • Operating System: Manjaro Linux, 23.0
  • Shell: Zsh
  • Terminal: Kitty
  • nvim --version: 0.9.0
  • fzf --version: 0.40.0

Description

First, thank you so much for your work. This plugin is amazing. I use it everyday and I love it ❤️!

I just have a simple question: is there a way to filter out some results when opening the list of colorschemes?

I never use some of the default ones that are ugly (like blue, default or desert) and I would rather filter them out than deleting them manually in my filesystem everytime I update neovim.

Thank you really much for your help.

@ibhagwan ibhagwan added the feature request New feature label Jul 5, 2023
@ibhagwan
Copy link
Owner

ibhagwan commented Jul 5, 2023

758d4dd

@Einenlum, update to the latest commit and set colorschemes.ignore_patterns in your setup, can also be called directly:

:= require("fzf-lua").colorschemes({ ignore_patterns = { "^delek$" , "^blue$" } })

Note that the matching is performed using lua's string.match so using the pattern blue will exclude all names that cotnain blue.

Lua patterns are very similar to regex, for more info read this.

@Einenlum
Copy link
Author

Einenlum commented Jul 6, 2023

Wow, I didn't expect such a quick answer and even an implementation!

It works amazingly. Exactly what I needed.
You rock, @ibhagwan. Thank you so much ❤️ !

@ibhagwan
Copy link
Owner

ibhagwan commented Jul 6, 2023

Yw @Einenlum and ty for the kinds words :)

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

No branches or pull requests

2 participants