From 70dc14df30a8f27ee8c8d455a4f60ca50589f823 Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Thu, 12 Jan 2023 09:21:07 +0200 Subject: [PATCH 1/7] add unocss-language-server to packages --- PACKAGES.md | 1 + 1 file changed, 1 insertion(+) diff --git a/PACKAGES.md b/PACKAGES.md index bb44820b9..3306baf78 100644 --- a/PACKAGES.md +++ b/PACKAGES.md @@ -231,6 +231,7 @@ - [svelte-language-server](#svelte-language-server) - [svlangserver](#svlangserver) - [svls](#svls) +- [unocss-language-server](#unocss-language-server) - [tailwindcss-language-server](#tailwindcss-language-server) - [taplo](#taplo) - [teal-language-server](#teal-language-server) From f877994605894335bcb24c65c752e54534e8ba92 Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Thu, 12 Jan 2023 09:21:34 +0200 Subject: [PATCH 2/7] add unocss-language-server to index --- lua/mason-registry/index.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/mason-registry/index.lua b/lua/mason-registry/index.lua index 59e23b49e..b2e71004c 100644 --- a/lua/mason-registry/index.lua +++ b/lua/mason-registry/index.lua @@ -240,6 +240,7 @@ return { tflint = "mason-registry.tflint", twigcs = "mason-registry.twigcs", ["typescript-language-server"] = "mason-registry.typescript-language-server", + ["unocss-language-server"] = "mason-registry.unocss-language-server", usort = "mason-registry.usort", ["vala-language-server"] = "mason-registry.vala-language-server", vale = "mason-registry.vale", @@ -261,4 +262,4 @@ return { yapf = "mason-registry.yapf", zk = "mason-registry.zk", zls = "mason-registry.zls" -} \ No newline at end of file +} From 4ef00287c3b0b326525e88e9a6f64e2294fcb426 Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Thu, 12 Jan 2023 09:25:46 +0200 Subject: [PATCH 3/7] add Pkg from npm --- lua/mason-registry/unocss-language-server/init.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/mason-registry/unocss-language-server/init.lua diff --git a/lua/mason-registry/unocss-language-server/init.lua b/lua/mason-registry/unocss-language-server/init.lua new file mode 100644 index 000000000..5d00c8735 --- /dev/null +++ b/lua/mason-registry/unocss-language-server/init.lua @@ -0,0 +1,11 @@ +local Pkg = require "mason-core.package" +local npm = require "mason-core.managers.npm" + +return Pkg.new { + name = "unocss-language-server", + desc = [[Language Server Protocol implementation for UnoCSS.]], + homepage = "https://github.com/xna00/unocss-language-server", + languages = { Pkg.Lang.CSS }, + categories = { Pkg.Cat.LSP }, + install = npm.packages { "unocss-language-server", bin = { "unocss-language-server" } }, +} From cf9d25f36dc5e5633e01e8668748d7908dfd1c15 Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Thu, 12 Jan 2023 09:26:15 +0200 Subject: [PATCH 4/7] add unocss-language-server to mappings --- lua/mason/mappings/language.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/mason/mappings/language.lua b/lua/mason/mappings/language.lua index a836b4edf..20b892daa 100644 --- a/lua/mason/mappings/language.lua +++ b/lua/mason/mappings/language.lua @@ -26,7 +26,7 @@ return { codeql = { "codeql" }, crystal = { "crystalline" }, csh = { "beautysh" }, - css = { "css-lsp", "cssmodules-language-server", "prettier", "prettierd", "tailwindcss-language-server" }, + css = { "css-lsp", "cssmodules-language-server", "prettier", "prettierd", "unocss-language-server", "tailwindcss-language-server" }, cucumber = { "cucumber-language-server" }, cue = { "cueimports", "cuelsp" }, d = { "serve-d" }, @@ -133,4 +133,4 @@ return { yaml = { "actionlint", "cfn-lint", "prettier", "prettierd", "spectral-language-server", "yaml-language-server", "yamlfmt", "yamllint" }, zig = { "zls" }, zsh = { "beautysh" } -} \ No newline at end of file +} From 5b588672f1f505da9d6bd6e68dd97f23d6c87769 Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Thu, 12 Jan 2023 09:37:31 +0200 Subject: [PATCH 5/7] set noeol --- lua/mason-registry/index.lua | 2 +- lua/mason-registry/unocss-language-server/init.lua | 2 +- lua/mason/mappings/language.lua | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/mason-registry/index.lua b/lua/mason-registry/index.lua index b2e71004c..4b18d0271 100644 --- a/lua/mason-registry/index.lua +++ b/lua/mason-registry/index.lua @@ -262,4 +262,4 @@ return { yapf = "mason-registry.yapf", zk = "mason-registry.zk", zls = "mason-registry.zls" -} +} \ No newline at end of file diff --git a/lua/mason-registry/unocss-language-server/init.lua b/lua/mason-registry/unocss-language-server/init.lua index 5d00c8735..971f1cb64 100644 --- a/lua/mason-registry/unocss-language-server/init.lua +++ b/lua/mason-registry/unocss-language-server/init.lua @@ -8,4 +8,4 @@ return Pkg.new { languages = { Pkg.Lang.CSS }, categories = { Pkg.Cat.LSP }, install = npm.packages { "unocss-language-server", bin = { "unocss-language-server" } }, -} +} \ No newline at end of file diff --git a/lua/mason/mappings/language.lua b/lua/mason/mappings/language.lua index 20b892daa..62aeaf242 100644 --- a/lua/mason/mappings/language.lua +++ b/lua/mason/mappings/language.lua @@ -133,4 +133,4 @@ return { yaml = { "actionlint", "cfn-lint", "prettier", "prettierd", "spectral-language-server", "yaml-language-server", "yamlfmt", "yamllint" }, zig = { "zls" }, zsh = { "beautysh" } -} +} \ No newline at end of file From 2881f033c02e41b30d73b7d313400aa9e82dcef2 Mon Sep 17 00:00:00 2001 From: hitchhooker Date: Thu, 12 Jan 2023 09:50:36 +0200 Subject: [PATCH 6/7] learn2ABC --- PACKAGES.md | 2 +- lua/mason/mappings/language.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/PACKAGES.md b/PACKAGES.md index 3306baf78..9bf8af58b 100644 --- a/PACKAGES.md +++ b/PACKAGES.md @@ -231,7 +231,6 @@ - [svelte-language-server](#svelte-language-server) - [svlangserver](#svlangserver) - [svls](#svls) -- [unocss-language-server](#unocss-language-server) - [tailwindcss-language-server](#tailwindcss-language-server) - [taplo](#taplo) - [teal-language-server](#teal-language-server) @@ -242,6 +241,7 @@ - [tflint](#tflint) - [twigcs](#twigcs) - [typescript-language-server](#typescript-language-server) +- [unocss-language-server](#unocss-language-server) - [usort](#usort) - [vala-language-server](#vala-language-server) - [vale](#vale) diff --git a/lua/mason/mappings/language.lua b/lua/mason/mappings/language.lua index 62aeaf242..50bc3c2a1 100644 --- a/lua/mason/mappings/language.lua +++ b/lua/mason/mappings/language.lua @@ -26,7 +26,7 @@ return { codeql = { "codeql" }, crystal = { "crystalline" }, csh = { "beautysh" }, - css = { "css-lsp", "cssmodules-language-server", "prettier", "prettierd", "unocss-language-server", "tailwindcss-language-server" }, + css = { "css-lsp", "cssmodules-language-server", "prettier", "prettierd", "tailwindcss-language-server", "unocss-language-server" }, cucumber = { "cucumber-language-server" }, cue = { "cueimports", "cuelsp" }, d = { "serve-d" }, From 5acc26fe81c0567e028b61e0e825eba60f93f055 Mon Sep 17 00:00:00 2001 From: "williambotman[bot]" Date: Thu, 12 Jan 2023 09:54:56 +0000 Subject: [PATCH 7/7] fixup --- PACKAGES.md | 1 - lua/mason-registry/unocss-language-server/init.lua | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/PACKAGES.md b/PACKAGES.md index 9bf8af58b..bb44820b9 100644 --- a/PACKAGES.md +++ b/PACKAGES.md @@ -241,7 +241,6 @@ - [tflint](#tflint) - [twigcs](#twigcs) - [typescript-language-server](#typescript-language-server) -- [unocss-language-server](#unocss-language-server) - [usort](#usort) - [vala-language-server](#vala-language-server) - [vale](#vale) diff --git a/lua/mason-registry/unocss-language-server/init.lua b/lua/mason-registry/unocss-language-server/init.lua index 971f1cb64..5d00c8735 100644 --- a/lua/mason-registry/unocss-language-server/init.lua +++ b/lua/mason-registry/unocss-language-server/init.lua @@ -8,4 +8,4 @@ return Pkg.new { languages = { Pkg.Lang.CSS }, categories = { Pkg.Cat.LSP }, install = npm.packages { "unocss-language-server", bin = { "unocss-language-server" } }, -} \ No newline at end of file +}