update elixir-tools configuration

This commit is contained in:
Sloane Perrault 2023-07-31 07:55:37 -04:00
parent bdbeff1fb1
commit affb407402
No known key found for this signature in database

View file

@ -153,9 +153,30 @@ return require('packer').startup(function(use)
use { use {
'elixir-tools/elixir-tools.nvim', 'elixir-tools/elixir-tools.nvim',
tag = 'v0.6.5',
requires = { 'nvim-lua/plenary.nvim' }, requires = { 'nvim-lua/plenary.nvim' },
config = function() 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'}, '<leader>fp', ':ElixirFromPipe<cr>', { buffer = true, noremap = true })
vim.keymap.set({'n', 'v'}, '<leader>tp', ':ElixirToPipe<cr>', { buffer = true, noremap = true })
end
}
})
end end
} }