From 4b18ff453d09a0d01475bc1a298a561746de372b Mon Sep 17 00:00:00 2001 From: Aroy-Art Date: Sun, 8 Dec 2024 21:26:44 +0100 Subject: [PATCH] NeoVIM: add elixir tools plugin config --- Configs/nvim/lua/plugins/elixir-tools.lua | 31 +++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Configs/nvim/lua/plugins/elixir-tools.lua diff --git a/Configs/nvim/lua/plugins/elixir-tools.lua b/Configs/nvim/lua/plugins/elixir-tools.lua new file mode 100644 index 0000000..14ba18e --- /dev/null +++ b/Configs/nvim/lua/plugins/elixir-tools.lua @@ -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", "fp", ":ElixirFromPipe", { buffer = true, noremap = true }) + vim.keymap.set("n", "tp", ":ElixirToPipe", { buffer = true, noremap = true }) + vim.keymap.set("v", "em", ":ElixirExpandMacro", { buffer = true, noremap = true }) + end, + }, + projectionist = { + enable = true, + }, + }) + end, + dependencies = { + "nvim-lua/plenary.nvim", + }, +}