From b918adc57720dafa6ad80e73746f84f760dd6f34 Mon Sep 17 00:00:00 2001 From: sloane <1699281+sloanelybutsurely@users.noreply.github.com> Date: Thu, 6 Jun 2024 09:19:16 -0400 Subject: [PATCH] Revert "revert to plain elixir ls" This reverts commit c061461d0df5ebef168ea84e9daba8a21e2f9bad. --- .config/nix-darwin/modules/darwin/nixvim.nix | 23 +++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/.config/nix-darwin/modules/darwin/nixvim.nix b/.config/nix-darwin/modules/darwin/nixvim.nix index cfd9db1..e89b8cb 100644 --- a/.config/nix-darwin/modules/darwin/nixvim.nix +++ b/.config/nix-darwin/modules/darwin/nixvim.nix @@ -53,6 +53,15 @@ hash = "sha256-tK7G5m3X8k2HjUA6Rm6Lz82K2GjXzcc1JNlxWrbBxGU="; }; }) + (pkgs.vimUtils.buildVimPlugin { + name = "elixir-tools"; + src = pkgs.fetchFromGitHub { + owner = "elixir-tools"; + repo = "elixir-tools.nvim"; + rev = "v0.14.0"; + hash = "sha256-U6db1n/RIpT7Dd54e9iI/PjO1BhDpMyNPfaph+dUk7k="; + }; + }) ]; colorscheme = "helix-boo"; @@ -72,7 +81,7 @@ lsp = { enable = true; servers = { - elixirls.enable = true; + # elixirls.enable = true; tsserver.enable = true; nil_ls.enable = true; }; @@ -273,6 +282,18 @@ vim.keymap.set('n', 'gr', vim.lsp.buf.references, opts) end, }) + + local elixir = require('elixir') + require('elixir').setup({ + nextls = { + enable = true, + init_options = { + experimental = { completions = { enable = true } }, + } + }, + credo = { enable = false }, + elixirls = { enable = false }, + }) ''; }; }