This repository has been archived on 2024-10-22. You can view files and clone it, but cannot push or open issues or pull requests.
spacemacs/layers/+lang/go/config.el

47 lines
1.6 KiB
EmacsLisp
Raw Normal View History

2017-02-01 14:06:00 +00:00
;;; config.el --- Go Layer config File for Spacemacs
2015-04-01 02:24:01 +00:00
;;
2018-01-04 07:00:25 +00:00
;; Copyright (c) 2012-2018 Sylvain Benner & Contributors
2015-04-01 02:24:01 +00:00
;;
;; Author: Sylvain Benner <sylvain.benner@gmail.com>
;; URL: https://github.com/syl20bnr/spacemacs
;;
;; This file is not part of GNU Emacs.
;;
;;; License: GPLv3
;; variables
(spacemacs|define-jump-handlers go-mode godef-jump)
(defvar go-backend nil
"The backend to use for IDE features.
Possible values are `go-mode' and `lsp'.
If `nil' then `go-mode' is the default backend unless `lsp' layer is used.")
2018-06-11 22:05:13 +00:00
(defvar go-use-gocheck-for-testing nil
"If using gocheck for testing when running the tests -check.f will be used instead of -run to specify the test that will be ran. Gocheck is mandatory for testing suites.")
(defvar go-use-testify-for-testing nil
"If using testify for testing when running the tests -testify.m will be used instead of -run to specify the test that will be ran. Testify is mandatory for testing suites.")
(defvar go-format-before-save nil
"Use gofmt before save. Set to non-nil to enable gofmt before saving. Default is nil.")
(defvar go-tab-width 8
"Set the `tab-width' in Go mode. Default is 8.")
2016-05-04 05:25:19 +00:00
(defvar go-use-golangci-lint nil
"Use `golangci-lint' if the variable has non-nil value.")
2018-06-07 19:26:51 +00:00
(defvar go-test-buffer-name "*go test*"
"Name of the buffer for go test output. Default is *go test*.")
(defvar go-use-test-args ""
"Additional arguments to be supplied to `go test` during runtime.")
(defvar go-test-verbose nil
"Control verbosity of `go test` output")
(defvar go-run-args ""
"Additional arguments to by supplied to `go run` during runtime.")