devos/users/modules/neovim/elixir.nix

22 lines
485 B
Nix
Raw 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" },
}
'';
};
home.packages = with pkgs; [ elixir ];
programs.neovim.plugins = with pkgs.vimPlugins; [ vim-elixir ];
};
}