hyprland-community / hyprls

A LSP server for Hyprland config files [maintainer=@ewen-lbh]
https://ewen.works/hyprls
MIT License
93 stars 4 forks source link

hyprls not start automatically(using mason) #18

Open AhJi26 opened 1 month ago

AhJi26 commented 1 month ago

I'm using mason to manage my nvim plugins, and install hyprls using mason. But when I open a hyprland config file like hyprland.conf, hyprls doesn't start automatically, is there any way to fix this? Thanks a lot!!!

ewen-lbh commented 1 month ago

Hi! It seems like the PR for mason support hasn't been merged yet, i'm wondering if any additional configuration, probably around filetype associations, is needed

https://github.com/williamboman/mason-lspconfig.nvim/pull/428

AhJi26 commented 1 month ago

Hi! It seems like the PR for mason support hasn't been merged yet, i'm wondering if any additional configuration, probably around filetype associations, is needed

https://github.com/williamboman/mason-lspconfig.nvim/pull/428

The filetype of my hyprland config file is hyprlang, should it be something else?

Zeioth commented 1 month ago

I can repro screenshot_2024-08-04_01-24-41_768880131

Installed through mason screenshot_2024-08-04_01-25-20_133019698

Manually started as screenshot_2024-08-04_01-25-54_924267176

The workaround is to install hyprls with go instead of mason

go install github.com/ewen-lbh/hyprls/cmd/hyprls@latest
Zeioth commented 1 month ago

It seems it has been merged to mason-lspconfig: https://github.com/williamboman/mason-lspconfig.nvim/commit/0e657813ae1b849dd6634d533edf4edc0185eb78

EDIT: The issue remains on my end.

AhJi26 commented 1 month ago

Thanks bro@Zeioth ! Already works on my machine.Have you updated mason yet?