aboutsummaryrefslogtreecommitdiffstats
path: root/lua/lspconfig/configs/hyprls.lua
blob: 0add68d3c796526bb5bc2268f75a77b3744acf4f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
return {
  default_config = {
    cmd = { 'hyprls', '--stdio' },
    filetypes = { 'hyprlang' },
    root_dir = function(fname)
      return vim.fs.dirname(vim.fs.find('.git', { path = fname, upward = true })[1])
    end,
    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
```

]],
  },
}