Enable go-lsp

This commit is contained in:
Bad 2022-08-26 22:55:16 +02:00
parent 539646493a
commit 87aeb4cfea
3 changed files with 24 additions and 0 deletions

View file

@ -7,6 +7,7 @@ in
imports = [ imports = [
./nvim-lsp.nix ./nvim-lsp.nix
./js.nix ./js.nix
./go.nix
./rust.nix ./rust.nix
./nix.nix ./nix.nix
]; ];
@ -30,6 +31,9 @@ in
vim-sleuth vim-sleuth
]; ];
extraPackages = with pkgs; [
nodePackages.prettier
];
extraConfig = '' extraConfig = ''
set background=dark set background=dark
set termguicolors set termguicolors

View file

@ -0,0 +1,19 @@
{ 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" },
}
'';
};
};
}

View file

@ -7,6 +7,7 @@
js.deno.enable = true; js.deno.enable = true;
nix.enable = true; nix.enable = true;
rust.enable = true; rust.enable = true;
go.enable = true;
#clangd.enable = true; #clangd.enable = true;
#python.enable = true; #python.enable = true;
}; };