From fbcbee20593a8b899225e7de36999ac9186a8b32 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sun, 26 Jan 2020 13:26:36 +0100 Subject: Configure golang dev environment --- user/settings/emacs.nix | 1 + user/settings/golang.nix | 10 ++++++++++ user/settings/tabnine.nix | 7 +++++++ 3 files changed, 18 insertions(+) create mode 100644 user/settings/golang.nix (limited to 'user/settings') diff --git a/user/settings/emacs.nix b/user/settings/emacs.nix index 2ce508f9..00f5bad4 100644 --- a/user/settings/emacs.nix +++ b/user/settings/emacs.nix @@ -123,6 +123,7 @@ in gitignore-mode gitlab-ci-mode gitlab-ci-mode-flycheck + go-mode goto-chg haskell-mode helpful diff --git a/user/settings/golang.nix b/user/settings/golang.nix new file mode 100644 index 00000000..4cc59343 --- /dev/null +++ b/user/settings/golang.nix @@ -0,0 +1,10 @@ +{ config, pkgs, ... }: + +{ + home.packages = (with pkgs; [ + go + go-langserver + goimports + gotools + ]); +} diff --git a/user/settings/tabnine.nix b/user/settings/tabnine.nix index daf86c39..aaaf9617 100644 --- a/user/settings/tabnine.nix +++ b/user/settings/tabnine.nix @@ -75,6 +75,13 @@ in { command = "hie"; args = [ "--stdio" ]; }; + "language.go" = { + command = "go-langserver"; + args = [ + "-mode" "stdio" + "-gocodecompletion" + ]; + }; }; }; -- cgit 1.4.1