devos/users/modules/neovim/elixir.nix

23 lines
572 B
Nix
Raw Permalink Normal View History

2022-09-25 22:56:54 +02:00
{ 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" },
}
'';
};
2022-11-20 19:44:57 +01:00
home.packages = with pkgs; [ elixir_1_14 ];
2022-11-23 10:53:02 +01:00
home.sessionVariables."ELIXIR_ERL_OPTIONS" = "-kernel shell_history enabled";
2022-09-25 22:56:54 +02:00
programs.neovim.plugins = with pkgs.vimPlugins; [ vim-elixir ];
};
}