diff options
| author | Vu Le Thanh <thanhvule0310@gmail.com> | 2022-07-25 14:37:30 +0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-07-25 09:37:30 +0200 |
| commit | d02deb7f32115c86b183adbd64c760b26e171413 (patch) | |
| tree | 31d5b92b7a378a2718888136f99bf3eb2b260662 /lua | |
| parent | feat(linter): add codespell (#125) (diff) | |
| download | mason-d02deb7f32115c86b183adbd64c760b26e171413.tar mason-d02deb7f32115c86b183adbd64c760b26e171413.tar.gz mason-d02deb7f32115c86b183adbd64c760b26e171413.tar.bz2 mason-d02deb7f32115c86b183adbd64c760b26e171413.tar.lz mason-d02deb7f32115c86b183adbd64c760b26e171413.tar.xz mason-d02deb7f32115c86b183adbd64c760b26e171413.tar.zst mason-d02deb7f32115c86b183adbd64c760b26e171413.zip | |
feat: add prettierd (#127)
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/mason-registry/index.lua | 1 | ||||
| -rw-r--r-- | lua/mason-registry/prettierd/init.lua | 26 | ||||
| -rw-r--r-- | lua/mason-schemas/lsp/zls.lua | 2 | ||||
| -rw-r--r-- | lua/mason/mappings/language.lua | 28 |
4 files changed, 42 insertions, 15 deletions
diff --git a/lua/mason-registry/index.lua b/lua/mason-registry/index.lua index 4070031b..f2695283 100644 --- a/lua/mason-registry/index.lua +++ b/lua/mason-registry/index.lua @@ -105,6 +105,7 @@ return { phpactor = "mason-registry.phpactor", ["powershell-editor-services"] = "mason-registry.powershell-editor-services", prettier = "mason-registry.prettier", + prettierd = "mason-registry.prettierd", ["prisma-language-server"] = "mason-registry.prisma-language-server", ["prosemd-lsp"] = "mason-registry.prosemd-lsp", psalm = "mason-registry.psalm", diff --git a/lua/mason-registry/prettierd/init.lua b/lua/mason-registry/prettierd/init.lua new file mode 100644 index 00000000..34a2e0c4 --- /dev/null +++ b/lua/mason-registry/prettierd/init.lua @@ -0,0 +1,26 @@ +local Pkg = require "mason-core.package" +local npm = require "mason-core.managers.npm" + +return Pkg.new { + name = "prettierd", + desc = [[Prettier, as a daemon, for ludicrous formatting speed]], + homepage = "https://github.com/fsouza/prettierd", + languages = { + Pkg.Lang.JavaScript, + Pkg.Lang.TypeScript, + Pkg.Lang.Flow, + Pkg.Lang.JSX, + Pkg.Lang.JSON, + Pkg.Lang.CSS, + Pkg.Lang.SCSS, + Pkg.Lang.LESS, + Pkg.Lang.HTML, + Pkg.Lang.Vue, + Pkg.Lang.Angular, + Pkg.Lang.GraphQL, + Pkg.Lang.Markdown, + Pkg.Lang.YAML, + }, + categories = { Pkg.Cat.Formatter }, + install = npm.packages { "@fsouza/prettierd", bin = { "prettierd" } }, +} diff --git a/lua/mason-schemas/lsp/zls.lua b/lua/mason-schemas/lsp/zls.lua index 564f9468..1270f70d 100644 --- a/lua/mason-schemas/lsp/zls.lua +++ b/lua/mason-schemas/lsp/zls.lua @@ -1,3 +1,3 @@ -- THIS FILE IS GENERATED. DO NOT EDIT MANUALLY. -- stylua: ignore start -return {properties = {["zls.build_runner_cache_path"] = {default = vim.NIL,description = "Path to a directory that will be used as cache when `zig run`ning the build runner",scope = "resource",type = "string"},["zls.build_runner_path"] = {default = vim.NIL,description = "Path to the build_runner.zig file.",scope = "resource",type = "string"},["zls.builtin_path"] = {default = vim.NIL,description = 'Path to "builtin;" useful for debugging, automatically set if let null',scope = "resource",type = "string"},["zls.debugLog"] = {description = "Enable debug logging in release builds of zls.",scope = "resource",type = "boolean"},["zls.enable_import_embedfile_argument_completions"] = {default = false,description = "Whether to enable import/embedFile argument completions (NOTE: these are triggered manually as updating the autotrigger characters may cause issues)",scope = "resource",type = "boolean"},["zls.enable_semantic_tokens"] = {default = true,description = "Semantic token support",scope = "resource",type = "boolean"},["zls.enable_snippets"] = {default = false,description = "Whether to enable snippet completions",scope = "resource",type = "boolean"},["zls.enable_unused_variable_warnings"] = {default = false,description = "Whether to enable unused variable warnings",scope = "resource",type = "boolean"},["zls.include_at_in_builtins"] = {default = false,description = "Whether the @ sign should be part of the completion of builtins",scope = "resource",type = "boolean"},["zls.max_detail_length"] = {default = 1048576,description = "The detail field of completions is truncated to be no longer than this (in bytes).",scope = "resource",type = "integer"},["zls.operator_completions"] = {default = true,description = "Whether to enable `*` and `?` operators in completion lists",scope = "resource",type = "boolean"},["zls.path"] = {description = "Path to `zls` executable. Example: `C:/zls/zig-cache/bin/zls.exe`.",format = "path",scope = "resource",type = "string"},["zls.skip_std_references"] = {default = false,description = "Skips references to std. This will improve lookup speeds. Going to definition however will continue to work",scope = "resource",type = "boolean"},["zls.trace.server"] = {default = "off",description = "Traces the communication between VS Code and the language server.",enum = { "off", "messages", "verbose" },scope = "window",type = "string"},["zls.warn_style"] = {default = false,description = "Whether to pay attention to style issues. This is opt-in since the style guide explicitly states that the style info provided is a guideline only.",scope = "resource",type = "boolean"},["zls.zig_exe_path"] = {default = vim.NIL,description = "Zig executable path used to run the custom build runner. May be used to find a lib path if none is provided.",scope = "resource",type = "string"},["zls.zig_lib_path"] = {default = vim.NIL,description = "Zig library path",scope = "resource",type = "string"}},title = "Zig Language Server",type = "object"}
\ No newline at end of file +return {properties = {["zls.build_runner_cache_path"] = {default = vim.NIL,description = "Path to a directory that will be used as cache when `zig run`ning the build runner",scope = "resource",type = "string"},["zls.build_runner_path"] = {default = vim.NIL,description = "Path to the build_runner.zig file.",scope = "resource",type = "string"},["zls.builtin_path"] = {default = vim.NIL,description = 'Path to "builtin;" useful for debugging, automatically set if let null',scope = "resource",type = "string"},["zls.debugLog"] = {description = "Enable debug logging in release builds of zls.",scope = "resource",type = "boolean"},["zls.enable_import_embedfile_argument_completions"] = {default = false,description = "Whether to enable import/embedFile argument completions (NOTE: these are triggered manually as updating the autotrigger characters may cause issues)",scope = "resource",type = "boolean"},["zls.enable_inlay_hints"] = {default = false,description = "Inlay hint support",scope = "resource",type = "boolean"},["zls.enable_semantic_tokens"] = {default = true,description = "Semantic token support",scope = "resource",type = "boolean"},["zls.enable_snippets"] = {default = false,description = "Whether to enable snippet completions",scope = "resource",type = "boolean"},["zls.enable_unused_variable_warnings"] = {default = false,description = "Whether to enable unused variable warnings",scope = "resource",type = "boolean"},["zls.include_at_in_builtins"] = {default = false,description = "Whether the @ sign should be part of the completion of builtins",scope = "resource",type = "boolean"},["zls.inlay_hints_exclude_single_argument"] = {default = true,description = "don't show inlay hints for single argument calls",scope = "resource",type = "boolean"},["zls.inlay_hints_show_builtin"] = {default = true,description = "enable inlay hints for builtin functions",scope = "resource",type = "boolean"},["zls.max_detail_length"] = {default = 1048576,description = "The detail field of completions is truncated to be no longer than this (in bytes).",scope = "resource",type = "integer"},["zls.operator_completions"] = {default = true,description = "Whether to enable `*` and `?` operators in completion lists",scope = "resource",type = "boolean"},["zls.path"] = {description = "Path to `zls` executable. Example: `C:/zls/zig-cache/bin/zls.exe`.",format = "path",scope = "resource",type = "string"},["zls.skip_std_references"] = {default = false,description = "Skips references to std. This will improve lookup speeds. Going to definition however will continue to work",scope = "resource",type = "boolean"},["zls.trace.server"] = {default = "off",description = "Traces the communication between VS Code and the language server.",enum = { "off", "messages", "verbose" },scope = "window",type = "string"},["zls.warn_style"] = {default = false,description = "Whether to pay attention to style issues. This is opt-in since the style guide explicitly states that the style info provided is a guideline only.",scope = "resource",type = "boolean"},["zls.zig_exe_path"] = {default = vim.NIL,description = "Zig executable path used to run the custom build runner. May be used to find a lib path if none is provided.",scope = "resource",type = "string"},["zls.zig_lib_path"] = {default = vim.NIL,description = "Zig library path",scope = "resource",type = "string"}},title = "Zig Language Server",type = "object"}
\ No newline at end of file diff --git a/lua/mason/mappings/language.lua b/lua/mason/mappings/language.lua index d7c31024..9a1f6dbe 100644 --- a/lua/mason/mappings/language.lua +++ b/lua/mason/mappings/language.lua @@ -3,7 +3,7 @@ return { [".net"] = { "netcoredbg" }, ["1ะก:enterprise"] = { "bsl-language-server" }, - angular = { "angular-language-server", "djlint", "prettier" }, + angular = { "angular-language-server", "djlint", "prettier", "prettierd" }, ansible = { "ansible-language-server" }, apex = { "apex-language-server" }, arduino = { "arduino-language-server" }, @@ -22,7 +22,7 @@ return { cmake = { "cmake-language-server" }, codeql = { "codeql" }, crystal = { "crystalline" }, - css = { "css-lsp", "cssmodules-language-server", "prettier", "tailwindcss-language-server" }, + css = { "css-lsp", "cssmodules-language-server", "prettier", "prettierd", "tailwindcss-language-server" }, cucumber = { "cucumber-language-server" }, d = { "serve-d" }, dhall = { "dhall-lsp" }, @@ -35,31 +35,31 @@ return { emmet = { "emmet-ls" }, erlang = { "erlang-ls" }, ["f#"] = { "fsautocomplete" }, - flow = { "prettier" }, + flow = { "prettier", "prettierd" }, flux = { "flux-lsp" }, fortran = { "fortls" }, go = { "delve", "djlint", "go-debug-adapter", "gofumpt", "golangci-lint", "golangci-lint-langserver", "golines", "gomodifytags", "gopls", "gotests", "impl", "json-to-struct", "revive", "staticcheck" }, - graphql = { "graphql-language-service-cli", "prettier" }, + graphql = { "graphql-language-service-cli", "prettier", "prettierd" }, groovy = { "groovy-language-server" }, handlebargs = { "djlint" }, haskell = { "haskell-language-server" }, haxe = { "haxe-language-server" }, hoon = { "hoon-language-server" }, - html = { "html-lsp", "prettier" }, + html = { "html-lsp", "prettier", "prettierd" }, java = { "jdtls" }, - javascript = { "chrome-debug-adapter", "deno", "eslint-lsp", "eslint_d", "firefox-debug-adapter", "node-debug2-adapter", "prettier", "quick-lint-js", "rome", "typescript-language-server" }, + javascript = { "chrome-debug-adapter", "deno", "eslint-lsp", "eslint_d", "firefox-debug-adapter", "node-debug2-adapter", "prettier", "prettierd", "quick-lint-js", "rome", "typescript-language-server" }, jinja = { "djlint" }, - json = { "json-lsp", "prettier" }, + json = { "json-lsp", "prettier", "prettierd" }, jsonnet = { "jsonnet-language-server" }, - jsx = { "prettier" }, + jsx = { "prettier", "prettierd" }, julia = { "julia-lsp" }, kotlin = { "kotlin-language-server", "ktlint" }, latex = { "ltex-ls", "texlab", "vale" }, lelwel = { "lelwel" }, - less = { "css-lsp", "prettier" }, + less = { "css-lsp", "prettier", "prettierd" }, liquid = { "shopify-theme-check" }, lua = { "lemmy-help", "lua-language-server", "luacheck", "luaformatter", "stylua" }, - markdown = { "grammarly-languageserver", "ltex-ls", "markdownlint", "marksman", "prettier", "prosemd-lsp", "remark-language-server", "vale", "zk" }, + markdown = { "grammarly-languageserver", "ltex-ls", "markdownlint", "marksman", "prettier", "prettierd", "prosemd-lsp", "remark-language-server", "vale", "zk" }, ["metamath zero"] = { "metamath-zero-lsp" }, mksh = { "shfmt" }, mustache = { "djlint" }, @@ -85,7 +85,7 @@ return { ruby = { "solargraph", "sorbet" }, rust = { "codelldb", "cpptools", "rust-analyzer" }, salt = { "salt-lsp" }, - scss = { "css-lsp", "prettier" }, + scss = { "css-lsp", "prettier", "prettierd" }, shell = { "shfmt" }, slint = { "slint-lsp" }, solidity = { "solang", "solidity" }, @@ -98,14 +98,14 @@ return { terraform = { "terraform-ls", "tflint" }, text = { "grammarly-languageserver", "ltex-ls", "vale" }, toml = { "taplo" }, - typescript = { "chrome-debug-adapter", "deno", "eslint-lsp", "eslint_d", "firefox-debug-adapter", "node-debug2-adapter", "prettier", "rome", "typescript-language-server" }, + typescript = { "chrome-debug-adapter", "deno", "eslint-lsp", "eslint_d", "firefox-debug-adapter", "node-debug2-adapter", "prettier", "prettierd", "rome", "typescript-language-server" }, v = { "vls" }, vala = { "vala-language-server" }, vimscript = { "vim-language-server", "vint" }, visualforce = { "visualforce-language-server" }, - vue = { "prettier", "vetur-vls", "vue-language-server" }, + vue = { "prettier", "prettierd", "vetur-vls", "vue-language-server" }, wgsl = { "wgsl-analyzer" }, xml = { "lemminx" }, - yaml = { "prettier", "yaml-language-server" }, + yaml = { "prettier", "prettierd", "yaml-language-server" }, zig = { "zls" } }
\ No newline at end of file |
