Added go dev env

This commit is contained in:
Julien Malka 2023-05-07 13:49:28 +02:00
parent 03a942ff9d
commit 35a1ae8b32
Signed by: Luj
GPG key ID: 6FC74C847011FD83

View file

@ -54,6 +54,15 @@ with lib;
};
};
go = {
command = "gopls";
rootPatterns = [ "go.work" "go.mod" ".vim/" ".git/" ".hg/" ];
filetypes = [ "go" ];
initializationOptions = {
usePlaceholders = true;
};
};
nix = {
command = "nil";
filetypes = [ "nix" ];
@ -117,7 +126,7 @@ with lib;
rust-vim
];
extraPackages = with pkgs; [ rust-analyzer pkgs.unstable.nil pyright nixpkgs-fmt ormolu ccls ];
extraPackages = with pkgs; [ rust-analyzer pkgs.unstable.nil pyright nixpkgs-fmt ormolu ccls gopls ];
extraConfig = ''
luafile ${./settings.lua}