mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 18:58:43 +02:00
19 lines
386 B
Nix
19 lines
386 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"];
|
||
|
};
|
||
|
}
|