From 6e80669f9d33ee97adb8c8191987bf42dcec0181 Mon Sep 17 00:00:00 2001 From: Ewen Le Bihan Date: Mon, 6 May 2024 07:41:49 +0200 Subject: feat: add hyprls support (#3137) --- lua/lspconfig/server_configurations/hyprls.lua | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 lua/lspconfig/server_configurations/hyprls.lua (limited to 'lua') 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]], + }, + }, +} -- cgit v1.2.3-70-g09d2