nixos/pkgsets/nvim/lsp/go.nix

13 lines
194 B
Nix

{
lib,
config,
pkgs,
...
}:
lib.optionalString (lib.elem "nvim::lsp::go" config.machine.pkgs) # lua
''
lspconfig.gopls.setup({
cmd = {"${pkgs.gopls}/bin/gopls"}
})
''