NeoVIM: add elixir tools plugin config

This commit is contained in:
Aroy-Art 2024-12-08 21:26:44 +01:00
parent d5cb1b2e5a
commit 4b18ff453d
Signed by: Aroy
GPG key ID: 583642324A1D2070

View file

@ -0,0 +1,31 @@
return {
"elixir-tools/elixir-tools.nvim",
version = "*",
event = { "BufReadPre", "BufNewFile" },
config = function()
local elixir = require("elixir")
local elixirls = require("elixir.elixirls")
elixir.setup({
nextls = { enable = true },
elixirls = {
enable = true,
settings = elixirls.settings({
dialyzerEnabled = false,
enableTestLenses = false,
}),
on_attach = function(client, bufnr)
vim.keymap.set("n", "<space>fp", ":ElixirFromPipe<cr>", { buffer = true, noremap = true })
vim.keymap.set("n", "<space>tp", ":ElixirToPipe<cr>", { buffer = true, noremap = true })
vim.keymap.set("v", "<space>em", ":ElixirExpandMacro<cr>", { buffer = true, noremap = true })
end,
},
projectionist = {
enable = true,
},
})
end,
dependencies = {
"nvim-lua/plenary.nvim",
},
}