aboutsummaryrefslogtreecommitdiffstats
path: root/lua
diff options
context:
space:
mode:
authorMicah Halter <micah@mehalter.com>2024-10-22 13:40:16 -0400
committerGitHub <noreply@github.com>2024-10-22 19:40:16 +0200
commit87638e71c83100980f932714ea62ea82a972c95b (patch)
tree02589ab41eea924ec65276ae1737bb9061193cb3 /lua
parentfix: update required nvim version to >= 0.9.0 (#478) (diff)
downloadmason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar
mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar.gz
mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar.bz2
mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar.lz
mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar.xz
mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.tar.zst
mason-lspconfig-87638e71c83100980f932714ea62ea82a972c95b.zip
fix: fix importing server config definitions from lspconfig (#468)
Diffstat (limited to 'lua')
-rw-r--r--lua/mason-lspconfig/mappings/filetype.lua43
-rw-r--r--lua/mason-lspconfig/mappings/server.lua1
-rw-r--r--lua/mason-lspconfig/server_config_extensions.lua2
3 files changed, 22 insertions, 24 deletions
diff --git a/lua/mason-lspconfig/mappings/filetype.lua b/lua/mason-lspconfig/mappings/filetype.lua
index 577b673..7110afb 100644
--- a/lua/mason-lspconfig/mappings/filetype.lua
+++ b/lua/mason-lspconfig/mappings/filetype.lua
@@ -4,13 +4,12 @@ return {
["BUILD.bazel"] = { "starlark_rust" },
OpenFOAM = { "foam_ls" },
PKGBUILD = { "pkgbuild_language_server" },
- ada = { "als" },
antlers = { "antlersls" },
apexcode = { "apex_ls" },
arduino = { "arduino_language_server" },
asm = { "asm_lsp" },
aspnetcorerazor = { "htmx", "tailwindcss" },
- astro = { "astro", "biome", "emmet_ls", "eslint", "htmx", "tailwindcss" },
+ astro = { "astro", "biome", "emmet_ls", "eslint", "htmx", "tailwindcss", "unocss" },
["astro-markdown"] = { "htmx", "tailwindcss" },
automake = { "autotools_ls" },
awk = { "awk_ls" },
@@ -35,9 +34,8 @@ return {
coq = { "coq_lsp" },
cpp = { "ast_grep", "clangd", "harper_ls" },
crystal = { "crystalline" },
- cs = { "csharp_ls", "omnisharp", "omnisharp_mono" },
- csharp = { "harper_ls" },
- css = { "ast_grep", "biome", "css_variables", "cssls", "emmet_language_server", "emmet_ls", "stylelint_lsp", "tailwindcss" },
+ cs = { "csharp_ls", "harper_ls", "omnisharp", "omnisharp_mono" },
+ css = { "ast_grep", "biome", "css_variables", "cssls", "emmet_language_server", "emmet_ls", "stylelint_lsp", "tailwindcss", "unocss" },
cucumber = { "cucumber_language_server" },
cuda = { "clangd" },
cue = { "dagger" },
@@ -54,10 +52,10 @@ return {
edge = { "htmx", "tailwindcss" },
edn = { "clojure_lsp" },
eelixir = { "elixirls", "htmx", "lexical", "nextls", "tailwindcss" },
- ejs = { "htmx", "tailwindcss" },
+ ejs = { "htmx", "tailwindcss", "unocss" },
elixir = { "elixirls", "htmx", "lexical", "nextls", "tailwindcss" },
elm = { "elmls" },
- erb = { "htmx", "tailwindcss" },
+ erb = { "htmx", "tailwindcss", "unocss" },
erg = { "erg_language_server" },
erlang = { "elp", "erlangls" },
eruby = { "emmet_language_server", "emmet_ls", "htmx", "steep", "stimulus_ls", "tailwindcss" },
@@ -78,13 +76,13 @@ return {
gomod = { "golangci_lint_ls", "gopls", "snyk_ls" },
gotmpl = { "gopls" },
gowork = { "gopls" },
- graphql = { "graphql" },
+ graphql = { "biome", "graphql" },
groovy = { "gradle_ls", "groovyls" },
- haml = { "htmx", "tailwindcss" },
+ haml = { "htmx", "tailwindcss", "unocss" },
handlebars = { "ember", "glint", "htmx", "tailwindcss" },
haskell = { "hls" },
haxe = { "haxe_language_server" },
- hbs = { "htmx", "tailwindcss" },
+ hbs = { "htmx", "tailwindcss", "unocss" },
heex = { "elixirls", "htmx", "lexical", "nextls", "tailwindcss" },
helm = { "helm_ls", "snyk_ls" },
hoon = { "hoon_ls" },
@@ -96,10 +94,10 @@ return {
hyprlang = { "hyprls" },
jade = { "htmx", "tailwindcss" },
java = { "ast_grep", "harper_ls", "java_language_server", "jdtls" },
- javascript = { "ast_grep", "biome", "cssmodules_ls", "denols", "dprint", "ember", "eslint", "glint", "harper_ls", "htmx", "lwc_ls", "quick_lint_js", "rome", "snyk_ls", "sourcery", "stylelint_lsp", "tailwindcss", "ts_ls", "vtsls" },
+ javascript = { "ast_grep", "biome", "cssmodules_ls", "denols", "dprint", "ember", "eslint", "glint", "harper_ls", "htmx", "lwc_ls", "quick_lint_js", "rome", "snyk_ls", "sourcery", "tailwindcss", "ts_ls", "unocss", "vtsls" },
["javascript.glimmer"] = { "ember", "glint" },
["javascript.jsx"] = { "denols", "eslint", "ts_ls", "vtsls" },
- javascriptreact = { "biome", "cssmodules_ls", "denols", "dprint", "emmet_language_server", "emmet_ls", "eslint", "graphql", "htmx", "rome", "sourcery", "stylelint_lsp", "tailwindcss", "ts_ls", "unocss", "vtsls" },
+ javascriptreact = { "biome", "cssmodules_ls", "denols", "dprint", "emmet_language_server", "emmet_ls", "eslint", "graphql", "htmx", "rome", "sourcery", "tailwindcss", "ts_ls", "unocss", "vtsls" },
jinja = { "jinja_lsp" },
jq = { "jqls" },
json = { "biome", "dprint", "jsonls", "rome", "snyk_ls", "spectral" },
@@ -109,7 +107,7 @@ return {
julia = { "julials" },
kotlin = { "ast_grep", "kotlin_language_server" },
leaf = { "htmx", "tailwindcss" },
- less = { "css_variables", "cssls", "emmet_language_server", "emmet_ls", "stylelint_lsp", "tailwindcss" },
+ less = { "css_variables", "cssls", "emmet_language_server", "emmet_ls", "stylelint_lsp", "tailwindcss", "unocss" },
lhaskell = { "hls" },
libsonnet = { "jsonnet_ls" },
liquid = { "htmx", "shopify_theme_ls", "tailwindcss", "theme_check" },
@@ -118,7 +116,7 @@ return {
luau = { "luau_lsp" },
mail = { "ltex" },
make = { "autotools_ls" },
- markdown = { "dprint", "grammarly", "harper_ls", "htmx", "ltex", "markdown_oxide", "marksman", "prosemd_lsp", "remark_ls", "tailwindcss", "vale_ls", "zk" },
+ markdown = { "dprint", "grammarly", "harper_ls", "htmx", "ltex", "markdown_oxide", "marksman", "prosemd_lsp", "remark_ls", "tailwindcss", "unocss", "vale_ls", "zk" },
["markdown.mdx"] = { "marksman", "mdx_analyzer" },
matlab = { "matlab_ls" },
mdx = { "htmx", "tailwindcss" },
@@ -152,9 +150,9 @@ return {
pandoc = { "ltex" },
perl = { "perlnavigator" },
pest = { "pest_ls" },
- php = { "htmx", "intelephense", "phpactor", "psalm", "stimulus_ls", "tailwindcss" },
+ php = { "htmx", "intelephense", "phpactor", "psalm", "stimulus_ls", "tailwindcss", "unocss" },
plaintex = { "ltex", "texlab" },
- postcss = { "tailwindcss" },
+ postcss = { "tailwindcss", "unocss" },
prisma = { "prismals" },
proto = { "bufls", "clangd", "pbls" },
ps1 = { "powershell_es" },
@@ -177,9 +175,9 @@ return {
roslyn = { "dprint" },
rst = { "esbonio", "ltex" },
ruby = { "harper_ls", "rubocop", "ruby_lsp", "solargraph", "sorbet", "standardrb", "steep", "stimulus_ls" },
- rust = { "ast_grep", "dprint", "harper_ls", "rust_analyzer" },
- sass = { "emmet_language_server", "emmet_ls", "somesass_ls", "tailwindcss" },
- scss = { "css_variables", "cssls", "emmet_language_server", "emmet_ls", "somesass_ls", "stylelint_lsp", "tailwindcss" },
+ rust = { "ast_grep", "dprint", "harper_ls", "rust_analyzer", "unocss" },
+ sass = { "emmet_language_server", "emmet_ls", "somesass_ls", "tailwindcss", "unocss" },
+ scss = { "css_variables", "cssls", "emmet_language_server", "emmet_ls", "somesass_ls", "stylelint_lsp", "tailwindcss", "unocss" },
sh = { "bashls" },
slim = { "htmx", "tailwindcss" },
slint = { "slint_lsp" },
@@ -190,7 +188,7 @@ return {
sql = { "sqlls", "sqls" },
ss = { "snakeskin_ls" },
star = { "starlark_rust" },
- stylus = { "tailwindcss" },
+ stylus = { "tailwindcss", "unocss" },
sugarss = { "stylelint_lsp", "tailwindcss" },
surface = { "elixirls", "lexical", "nextls" },
svelte = { "biome", "emmet_ls", "eslint", "htmx", "svelte", "tailwindcss", "unocss" },
@@ -208,10 +206,10 @@ return {
thrift = { "thriftls" },
toml = { "dprint", "harper_ls", "taplo" },
twig = { "htmx", "tailwindcss", "twiggy_language_server" },
- typescript = { "angularls", "ast_grep", "biome", "cssmodules_ls", "denols", "dprint", "ember", "eslint", "glint", "harper_ls", "htmx", "quick_lint_js", "rome", "snyk_ls", "sourcery", "stylelint_lsp", "tailwindcss", "ts_ls", "vtsls" },
+ typescript = { "angularls", "ast_grep", "biome", "cssmodules_ls", "denols", "dprint", "ember", "eslint", "glint", "harper_ls", "htmx", "quick_lint_js", "rome", "snyk_ls", "sourcery", "tailwindcss", "ts_ls", "unocss", "vtsls" },
["typescript.glimmer"] = { "ember", "glint" },
["typescript.tsx"] = { "angularls", "biome", "denols", "eslint", "rome", "ts_ls", "vtsls" },
- typescriptreact = { "angularls", "biome", "cssmodules_ls", "denols", "dprint", "emmet_language_server", "emmet_ls", "eslint", "graphql", "harper_ls", "htmx", "rome", "sourcery", "stylelint_lsp", "tailwindcss", "ts_ls", "unocss", "vtsls" },
+ typescriptreact = { "angularls", "biome", "cssmodules_ls", "denols", "dprint", "emmet_language_server", "emmet_ls", "eslint", "graphql", "harper_ls", "htmx", "rome", "sourcery", "tailwindcss", "ts_ls", "unocss", "vtsls" },
typespec = { "tsp_server" },
typst = { "tinymist", "typst_lsp" },
v = { "v_analyzer", "vls" },
@@ -228,6 +226,7 @@ return {
vmasm = { "asm_lsp" },
vsh = { "v_analyzer" },
vue = { "biome", "emmet_ls", "eslint", "htmx", "stylelint_lsp", "tailwindcss", "unocss", "volar", "vuels" },
+ ["vue-html"] = { "unocss" },
vv = { "v_analyzer" },
wgsl = { "wgsl_analyzer" },
wxss = { "stylelint_lsp" },
diff --git a/lua/mason-lspconfig/mappings/server.lua b/lua/mason-lspconfig/mappings/server.lua
index 8530cde..09a3fc2 100644
--- a/lua/mason-lspconfig/mappings/server.lua
+++ b/lua/mason-lspconfig/mappings/server.lua
@@ -4,7 +4,6 @@ local M = {}
---Maps lspconfig server config name to its corresponding package name.
M.lspconfig_to_package = {
- ["als"] = "ada-language-server",
["angularls"] = "angular-language-server",
["ansiblels"] = "ansible-language-server",
["antlersls"] = "antlers-language-server",
diff --git a/lua/mason-lspconfig/server_config_extensions.lua b/lua/mason-lspconfig/server_config_extensions.lua
index 2bdffc9..48b45fb 100644
--- a/lua/mason-lspconfig/server_config_extensions.lua
+++ b/lua/mason-lspconfig/server_config_extensions.lua
@@ -1,5 +1,5 @@
return function()
local configs = require "lspconfig.configs"
- configs.omnisharp_mono = require "lspconfig.server_configurations.omnisharp"
+ configs.omnisharp_mono = require "lspconfig.configs.omnisharp"
end