hyprls icon indicating copy to clipboard operation
hyprls copied to clipboard

hyprls not start automatically(using mason)

Open Jax-Tsai-zero opened this issue 1 year ago • 6 comments

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!!!

Jax-Tsai-zero avatar Jul 28 '24 08:07 Jax-Tsai-zero

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

gwennlbh avatar Jul 28 '24 08:07 gwennlbh

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?

Jax-Tsai-zero avatar Aug 02 '24 03:08 Jax-Tsai-zero

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 avatar Aug 03 '24 23:08 Zeioth

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.

Zeioth avatar Aug 05 '24 15:08 Zeioth

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

Jax-Tsai-zero avatar Aug 06 '24 01:08 Jax-Tsai-zero

It still doesn't auto start. I created an issue to ask why a certain hyprls-related commit removed some rules that might be needed to fix this.

http://github.com/williamboman/mason-lspconfig.nvim/issues/513

andradei avatar Jan 31 '25 04:01 andradei

imma close this, seems like a mason-side issue

gwennlbh avatar Jun 16 '25 12:06 gwennlbh