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

Simplify language server startup #9

Closed Cloudperry closed 5 months ago

Cloudperry commented 6 months ago

The readme suggests to use an autocmd for starting the language server. The LS can also be started by adding "hyprlang" to the filetypes option of the LS and running this:

vim.filetype.add({
  pattern = { [".*/hypr/.*%.conf"] = "hyprlang" },
})

Maybe you should change the filetypes option to include "hyprlang" by default and suggest using this filetype detection pattern for starting the LS. The autocmd is a very non-standard way of starting it and in my Neovim it seemed to trigger very often (when going to command mode and back etc).

ewen-lbh commented 5 months ago

Will do! see #12