From 4e604e447a0de43f8649d466c45c1b28fb381c49 Mon Sep 17 00:00:00 2001 From: Alexander Sieg Date: Fri, 14 Jun 2024 18:23:36 +0200 Subject: [PATCH] upgrade elixir-ls --- home/develop/neovim/nvim/init.lua | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/home/develop/neovim/nvim/init.lua b/home/develop/neovim/nvim/init.lua index 34563ac..2469c63 100644 --- a/home/develop/neovim/nvim/init.lua +++ b/home/develop/neovim/nvim/init.lua @@ -161,7 +161,23 @@ require('lspconfig').pylsp.setup({ local elixir = require("elixir") local elixirls = require("elixir.elixirls") elixir.setup { + nextls = { + enable = true, + experimental = { + completions = { + enable = true + } + }, + capabilities = require('lsp').capabilities(), + 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 }) + require('lsp').on_attach(client, bufnr) + end, + }, elixirls = { + tag = "v0.22.0", capabilities = require('lsp').capabilities(), on_attach = function(client, bufnr) vim.keymap.set("n", "fp", ":ElixirFromPipe", { buffer = true, noremap = true })