Skip to content

Commit

Permalink
feat: add selene (williamboman#159)
Browse files Browse the repository at this point in the history
  • Loading branch information
oncomouse authored Jul 26, 2022
1 parent 54532bb commit b7ac6ac
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/mason-registry/index.lua
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ return {
rome = "mason-registry.rome",
["rust-analyzer"] = "mason-registry.rust-analyzer",
["salt-lsp"] = "mason-registry.salt-lsp",
selene = "mason-registry.selene",
["serve-d"] = "mason-registry.serve-d",
shellcheck = "mason-registry.shellcheck",
shfmt = "mason-registry.shfmt",
Expand Down
11 changes: 11 additions & 0 deletions lua/mason-registry/selene/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
local Pkg = require "mason-core.package"
local cargo = require "mason-core.managers.cargo"

return Pkg.new {
name = "selene",
desc = [[A blazing-fast modern Lua linter written in Rust]],
homepage = "https://kampfkarren.github.io/selene/",
languages = { Pkg.Lang.Lua },
categories = { Pkg.Cat.Linter },
install = cargo.crate { "selene", bin = { "selene" } },
}
2 changes: 1 addition & 1 deletion lua/mason/mappings/language.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ return {
lelwel = { "lelwel" },
less = { "css-lsp", "prettier", "prettierd" },
liquid = { "shopify-theme-check" },
lua = { "lemmy-help", "lua-language-server", "luacheck", "luaformatter", "stylua" },
lua = { "lemmy-help", "lua-language-server", "luacheck", "luaformatter", "selene", "stylua" },
markdown = { "grammarly-languageserver", "ltex-ls", "markdownlint", "marksman", "prettier", "prettierd", "prosemd-lsp", "remark-language-server", "vale", "write-good", "zk" },
["metamath zero"] = { "metamath-zero-lsp" },
mksh = { "shfmt" },
Expand Down

0 comments on commit b7ac6ac

Please sign in to comment.