hyprland-community / hyprls

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

hyprls not start automatically(using mason) #18

Open AhJi26 opened 4 months ago

AhJi26 commented 4 months 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 4 months 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 3 months 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 3 months 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 3 months 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 3 months ago

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