devos/users/modules/neovim/go.nix

20 lines
360 B
Nix
Raw Permalink Normal View History

2022-08-26 22:55:16 +02:00
{ 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" },
}
'';
};
};
}