Add elixir

This commit is contained in:
Bad 2022-09-25 22:56:54 +02:00
parent 77fa076012
commit 379e2be202
3 changed files with 23 additions and 0 deletions

View file

@ -12,6 +12,7 @@ in
./nix.nix
./python.nix
./clangd.nix
./elixir.nix
];
options.mae.nvim = {

View file

@ -0,0 +1,21 @@
{ lib, pkgs, config, ... }:
let
cfg = config.mae.nvim.elixir;
in
with lib;
{
options.mae.nvim.elixir.enable = lib.mkEnableOption "Enable elixir support in neovim";
config = mkIf cfg.enable {
mae.nvim.lsp.servers.elixirls = {
enable = true;
script = ''
{
cmd = { "${pkgs.elixir_ls}/bin/elixir-ls" },
}
'';
};
home.packages = with pkgs; [ elixir ];
programs.neovim.plugins = with pkgs.vimPlugins; [ vim-elixir ];
};
}

View file

@ -10,5 +10,6 @@
go.enable = true;
clangd.enable = true;
python.enable = true;
elixir.enable = true;
};
}