From 44f67ddc18593d8468531736c8610244214c3137 Mon Sep 17 00:00:00 2001 From: Olivier Wittek <57495944+owittek@users.noreply.github.com> Date: Fri, 2 Jun 2023 15:33:40 +0200 Subject: [PATCH] feat(pack): add selene linter to lua pack --- lua/astrocommunity/pack/lua/README.md | 1 + lua/astrocommunity/pack/lua/lua.lua | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/lua/astrocommunity/pack/lua/README.md b/lua/astrocommunity/pack/lua/README.md index 06048707f..f50255014 100644 --- a/lua/astrocommunity/pack/lua/README.md +++ b/lua/astrocommunity/pack/lua/README.md @@ -5,3 +5,4 @@ This plugin pack does the following: - Adds `lua` Treesitter parser - Adds `lua_ls` language server - Adds `stylua` formatter +- Adds `selene` linter diff --git a/lua/astrocommunity/pack/lua/lua.lua b/lua/astrocommunity/pack/lua/lua.lua index f80980542..06ba3cbf7 100644 --- a/lua/astrocommunity/pack/lua/lua.lua +++ b/lua/astrocommunity/pack/lua/lua.lua @@ -14,6 +14,8 @@ return { }, { "jay-babu/mason-null-ls.nvim", - opts = function(_, opts) opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, "stylua") end, + opts = function(_, opts) + opts.ensure_installed = utils.list_insert_unique(opts.ensure_installed, { "stylua", "selene" }) + end, }, }