mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 10:48:35 +02:00
18 lines
387 B
Nix
18 lines
387 B
Nix
{ config, pkgs, lib, ...}:
|
|
with lib;
|
|
let
|
|
cfg = config.programs.nixvim.plugins.lsp.servers.gopls;
|
|
in
|
|
{
|
|
options = {
|
|
programs.nixvim.plugins.lsp.servers.gopls = {
|
|
enable = mkEnableOption "Enable gopls, for Go.";
|
|
};
|
|
};
|
|
|
|
config = mkIf cfg.enable {
|
|
programs.nixvim.extraPackages = [ pkgs.gopls ];
|
|
|
|
programs.nixvim.plugins.lsp.enabledServers = [ "gopls" ];
|
|
};
|
|
}
|