-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
[FEAT]: Support discovering tool/language by file contents #44
Comments
Hello, To your request: Currently there's no support for resolving a language by it's contents. Right now everything is based on the file extension. Resolving language by folder path is nonsense and would be hard to do since the config files can be at different places on different distributions. It would be a hack that I think I'm not willing to do, unless someone shows me a good solution. Using file contents wouldn't be easy either as I'd likely have to implement something like a parser for every supported language/config file so that it could be recognized. Considering that I'm doing this for free while studying college I don't have the time to do this. It probably won't be solved in the near future, if at all, but I'm willing to leave this open if someone else has input. You could do something like a bodge and make a private git repo for this. Then you could have something like |
file_assets
problem
Can i do a custom folder setting? somthing like: custom = {
"~/.config/hypr" = { "Hyprland", "<image-url>" },
"~/.config/mpv" = { "MPV", "<image-url>" },
} it would be fun to implement this, if you aren't free, drop a message in this issue, and the folder/file link where these things, are defined, Thank You @jiriks74 for dropping this plugin, now i can flex to my peers, that i am doing a big job... |
@daUnknownCoder I took over the project so I'm not fully familiar with it yet (I'm working on it). Important AFAIK there's no way to do what you want. If you'd like to add something like you suggested: custom = {
"~/.config/hypr" = { "Hyprland", "<image-url>" },
"~/.config/mpv" = { "MPV", "<image-url>" },
} Someone would need to implement such functionality. Sadly I am not able to work on this RN. |
Are you on the latest version?
Have you tried it with default config?
Description
I wonder if you have used
hyprland
or not (the infamous wayland tiling window manager that does not sacrifice on its looks)so the filetype is
hypr
and the directory it is stored in is~/.config/hypr
and all files have an extension.conf
so what happens is, i want to set theHyprland
Logo inRich Presence
when I am editing my Hyprland config, i tried settingwhich works, but it shows the
Hyprland
logo for every.conf
file, likempd.conf
, some filetypes excluded (likekitty.conf
, which has the kitty logo) so the other i have tried is settinghypr = {...}
,hyprlang = {...}
, so the thing isHyprland
's config has official tree-sitter support too (https://github.com/tree-sitter-grammars/tree-sitter-hyprlang?tab=readme-ov-file)Neovim version
OS information
6.7.9-arch1-1 (Hyprland)
Steps to reproduce
It doesnt work so?
Logs
Aditional info
with
hypr = {...}
orhyprland = {...}
with
conf = {...}
The text was updated successfully, but these errors were encountered: