From affb40740248b1eda1617d4f7b38d240ce59e9b7 Mon Sep 17 00:00:00 2001 From: Sloane Perrault Date: Mon, 31 Jul 2023 07:55:37 -0400 Subject: [PATCH] update elixir-tools configuration --- .config/nvim/lua/plugins.lua | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua index 20111fa..c1f4435 100644 --- a/.config/nvim/lua/plugins.lua +++ b/.config/nvim/lua/plugins.lua @@ -153,9 +153,30 @@ return require('packer').startup(function(use) use { 'elixir-tools/elixir-tools.nvim', + tag = 'v0.6.5', requires = { 'nvim-lua/plenary.nvim' }, config = function() - require('elixir').setup() + local elixir = require('elixir') + local elixirls = require('elixir.elixirls') + + elixir.setup({ + nextls = { enable = true }, + credo = {}, + elixirls = { + tag = 'v0.15.1', + enable = true, + settings = elixirls.settings({ + dialyzerEnabled = false, + fetchDeps = true, + enableTestLenses = true, + suggestSpecs = true, + }), + on_attach = function(client, bufnr) + vim.keymap.set({'n', 'v'}, 'fp', ':ElixirFromPipe', { buffer = true, noremap = true }) + vim.keymap.set({'n', 'v'}, 'tp', ':ElixirToPipe', { buffer = true, noremap = true }) + end + } + }) end }