From 2ffd629cc7a68e6e4a721ac8babe6b7cf612868e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?George=20Guimar=C3=A3es?= Date: Sun, 1 Oct 2023 14:48:09 -0300 Subject: [PATCH] feat(elixir): Add credo if none-ls is used (#1546) --- lua/lazyvim/plugins/extras/lang/elixir.lua | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/lua/lazyvim/plugins/extras/lang/elixir.lua b/lua/lazyvim/plugins/extras/lang/elixir.lua index 757afb07..dbd0e9a7 100644 --- a/lua/lazyvim/plugins/extras/lang/elixir.lua +++ b/lua/lazyvim/plugins/extras/lang/elixir.lua @@ -29,4 +29,24 @@ return { }, }, }, + { + "nvimtools/none-ls.nvim", + optional = true, + opts = function(_, opts) + local nls = require("null-ls") + opts.sources = opts.sources or {} + vim.list_extend(opts.sources, { + nls.builtins.diagnostics.credo, + }) + end, + }, + { + "mfussenegger/nvim-lint", + optional = true, + opts = { + linters_by_ft = { + elixir = { "credo" }, + }, + }, + }, }