Skip to content

Commit

Permalink
feat(registry): add snakefmt (#1048)
Browse files Browse the repository at this point in the history
  • Loading branch information
nbiederbeck authored Mar 5, 2023
1 parent 2237ebf commit 712f137
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions lua/mason-registry/index/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,7 @@ return {
["shopify-theme-check"] = "mason-registry.index.shopify-theme-check",
["slint-lsp"] = "mason-registry.index.slint-lsp",
["smithy-language-server"] = "mason-registry.index.smithy-language-server",
snakefmt = "mason-registry.index.snakefmt",
solang = "mason-registry.index.solang",
solargraph = "mason-registry.index.solargraph",
solhint = "mason-registry.index.solhint",
Expand Down
11 changes: 11 additions & 0 deletions lua/mason-registry/index/snakefmt/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local Pkg = require "mason-core.package"
local pip3 = require "mason-core.managers.pip3"

return Pkg.new {
name = "snakefmt",
desc = "The uncompromising Snakemake code formatter",
homepage = "https://github.com/snakemake/snakefmt",
languages = { Pkg.Lang.Snakemake },
categories = { Pkg.Cat.Formatter },
install = pip3.packages { "snakefmt", bin = { "snakefmt" } },
}
1 change: 1 addition & 0 deletions lua/mason/mappings/language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -116,6 +116,7 @@ return {
shell = { "shfmt" },
slint = { "slint-lsp" },
smithy = { "smithy-language-server" },
snakemake = { "snakefmt" },
solidity = { "solang", "solhint", "solidity", "solidity-ls" },
sphinx = { "esbonio" },
sql = { "sql-formatter", "sqlfluff", "sqlls", "sqls" },
Expand Down

0 comments on commit 712f137

Please sign in to comment.