Skip to content

Commit

Permalink
feat: add hyprls (#428)
Browse files Browse the repository at this point in the history
  • Loading branch information
nenikitov authored Aug 4, 2024
1 parent 5716924 commit 0e65781
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 0 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -264,6 +264,7 @@ local DEFAULT_SETTINGS = {
| HTML | [`templ`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#templ) |
| HTML | [`twiggy_language_server`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#twiggy_language_server) |
| HTMX | [`htmx`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#htmx) |
| Hypr | [`hyprls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#hyprls) |
| Java | [`ast_grep`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#ast_grep) |
| Java | [`java_language_server`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#java_language_server) |
| Java | [`jdtls`](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#jdtls) |
Expand Down
1 change: 1 addition & 0 deletions doc/mason-lspconfig-mapping.txt
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ hoon-language-server hoon_ls
html-lsp html
htmx-lsp htmx
hydra-lsp hydra_lsp
hyprls hyprls
intelephense intelephense
java-language-server java_language_server
jdtls jdtls
Expand Down
1 change: 1 addition & 0 deletions doc/server-mapping.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@
| [html](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#html) | [html-lsp](https://mason-registry.dev/registry/list#html-lsp) |
| [htmx](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#htmx) | [htmx-lsp](https://mason-registry.dev/registry/list#htmx-lsp) |
| [hydra_lsp](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#hydra_lsp) | [hydra-lsp](https://mason-registry.dev/registry/list#hydra-lsp) |
| [hyprls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#hyprls) | [hyprls](https://mason-registry.dev/registry/list#hyprls) |
| [intelephense](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#intelephense) | [intelephense](https://mason-registry.dev/registry/list#intelephense) |
| [java_language_server](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#java_language_server) | [java-language-server](https://mason-registry.dev/registry/list#java-language-server) |
| [jdtls](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.md#jdtls) | [jdtls](https://mason-registry.dev/registry/list#jdtls) |
Expand Down
4 changes: 4 additions & 0 deletions lua/mason-lspconfig/mappings/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
-- stylua: ignore start
return {
["*"] = { "typos_lsp" },
["*.hl"] = { "hyprls" },
[".config/hypr/*.conf"] = { "hyprls" },
["BUILD.bazel"] = { "starlark_rust" },
OpenFOAM = { "foam_ls" },
PKGBUILD = { "pkgbuild_language_server" },
Expand Down Expand Up @@ -94,6 +96,8 @@ return {
["html.handlebars"] = { "glint" },
htmlangular = { "angularls", "emmet_language_server", "emmet_ls", "tailwindcss" },
htmldjango = { "emmet_language_server", "emmet_ls", "tailwindcss" },
["hypr*.conf"] = { "hyprls" },
hyprlang = { "hyprls" },
jade = { "tailwindcss" },
java = { "ast_grep", "harper_ls", "java_language_server", "jdtls" },
javascript = { "ast_grep", "biome", "cssmodules_ls", "denols", "dprint", "ember", "eslint", "glint", "harper_ls", "lwc_ls", "quick_lint_js", "rome", "snyk_ls", "sourcery", "stylelint_lsp", "tailwindcss", "tsserver", "vtsls" },
Expand Down
1 change: 1 addition & 0 deletions lua/mason-lspconfig/mappings/server.lua
Original file line number Diff line number Diff line change
Expand Up @@ -88,6 +88,7 @@ M.lspconfig_to_package = {
["html"] = "html-lsp",
["htmx"] = "htmx-lsp",
["hydra_lsp"] = "hydra-lsp",
["hyprls"] = "hyprls",
["intelephense"] = "intelephense",
["java_language_server"] = "java-language-server",
["jdtls"] = "jdtls",
Expand Down

0 comments on commit 0e65781

Please sign in to comment.