summaryrefslogtreecommitdiff
path: root/start/lspconfig-0.1.8/lua/lspconfig/server_configurations/hyprls.lua
blob: 1a2902377872a8276071eefd209ffe71096c462d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
local util = require 'lspconfig.util'

return {
  default_config = {
    cmd = { 'hyprls', '--stdio' },
    filetypes = { '*.hl', 'hypr*.conf', '.config/hypr/*.conf' },
    root_dir = util.find_git_ancestor,
    single_file_support = true,
  },
  docs = {
    description = [[
https://github.com/hyprland-community/hyprls

`hyprls` can be installed via `go`:
```sh
go install github.com/ewen-lbh/hyprls/cmd/hyprls@latest
```

]],
    default_config = {
      root_dir = [[util.find_git_ancestor]],
    },
  },
}