aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorEwen Le Bihan <hey@ewen.works>2024-05-06 07:41:49 +0200
committerGitHub <noreply@github.com>2024-05-06 13:41:49 +0800
commit6e80669f9d33ee97adb8c8191987bf42dcec0181 (patch)
treee0b1b99585a19680b5c13b8f82ded90fb7462f1c /lua
parentdocs: update server_configurations.md (diff)
downloadnvim-lspconfig-6e80669f9d33ee97adb8c8191987bf42dcec0181.tar
nvim-lspconfig-6e80669f9d33ee97adb8c8191987bf42dcec0181.tar.gz
nvim-lspconfig-6e80669f9d33ee97adb8c8191987bf42dcec0181.tar.bz2
nvim-lspconfig-6e80669f9d33ee97adb8c8191987bf42dcec0181.tar.lz
nvim-lspconfig-6e80669f9d33ee97adb8c8191987bf42dcec0181.tar.xz
nvim-lspconfig-6e80669f9d33ee97adb8c8191987bf42dcec0181.tar.zst
nvim-lspconfig-6e80669f9d33ee97adb8c8191987bf42dcec0181.zip
feat: add hyprls support (#3137)
Diffstat (limited to 'lua')
-rw-r--r--lua/lspconfig/server_configurations/hyprls.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/lspconfig/server_configurations/hyprls.lua b/lua/lspconfig/server_configurations/hyprls.lua
new file mode 100644
index 00000000..1a290237
--- /dev/null
+++ b/lua/lspconfig/server_configurations/hyprls.lua
@@ -0,0 +1,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]],
+ },
+ },
+}