mirror of
https://github.com/nix-community/nixvim.git
synced 2026-09-24 15:30:15 -05:00
nvim-lsp: add gopls support
This commit is contained in:
@@ -11,6 +11,7 @@ in
|
||||
./rnix-lsp.nix
|
||||
./pyright.nix
|
||||
./zls.nix
|
||||
./gopls.nix
|
||||
];
|
||||
|
||||
options = {
|
||||
|
||||
@@ -0,0 +1,18 @@
|
||||
{ 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"];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user