Add elixir language server.

main
Joshua Potter 2023-11-20 09:32:20 -07:00
parent 98aa5d6177
commit 6b1d507283
2 changed files with 20 additions and 0 deletions

View File

@ -32,6 +32,7 @@ let
plugin = (pkgs.vimPlugins.nvim-treesitter.withPlugins (
ps: with ps; [
bash
elixir
lua
nix
python
@ -68,6 +69,7 @@ in
imports = [
./lang/bash.nix
./lang/elixir.nix
./lang/lean.nix
./lang/lua.nix
./lang/nix.nix

View File

@ -0,0 +1,18 @@
{ pkgs, ... }:
{
programs.neovim = {
nvim-lspconfig = ''
require('init.lsp').setup(require('lspconfig').elixirls) {
-- Keep command relative. Compatibility of `elixir-ls` depends tightly
-- on -- the version of elixir being used so this allows local (i.e.
-- within nix shells) versions of `elixir-ls` to override the version
-- specified -- in `extraPackages`.
cmd = { 'elixir-ls' },
}
'';
extraPackages = with pkgs; [
elixir-ls
];
};
}