19 lines
360 B
Nix
19 lines
360 B
Nix
{ lib, pkgs, config, ... }:
|
|
let
|
|
cfg = config.mae.nvim.go;
|
|
in
|
|
with lib;
|
|
{
|
|
options.mae.nvim.go.enable = lib.mkEnableOption "Enable go language support in neovim";
|
|
|
|
config = mkIf cfg.enable {
|
|
mae.nvim.lsp.servers.gopls = {
|
|
enable = true;
|
|
script = ''
|
|
{
|
|
cmd = { "${pkgs.gopls}/bin/gopls" },
|
|
}
|
|
'';
|
|
};
|
|
};
|
|
}
|