Help us understand the problem. What is going on with this article?

Spacemacs: golang LSPを導入

More than 1 year has passed since last update.


Spacemacs(Emacs)でgolangのLSP実装である goplsを使ってみた。
(今のところ)邪魔になる処理を無効にすれば、使える :thumbsup:

gopls のインストール

go get -u



(defun dotspacemacs/layers ()


     (go :variables
         godoc-at-point-function 'godoc-gogetdoc
         ;; go-use-gometalinter t
         go-use-golangci-lint t
         ;; go-backend 'go-mode
         go-backend 'lsp



(defun dotspacemacs/user-config ()


  ;; lsp
  (setq company-lsp-cache-candidates t)
  (setq company-lsp-async t)
  (setq lsp-ui-doc-enable nil)
  (setq lsp-ui-doc-include-signature nil)
  ;; lsp-ui-sideline
  (setq lsp-ui-sideline-enable nil)
  ;; lsp-ui-flycheck
  (setq lsp-ui-flycheck-enable t)
  ;; lsp-ui-imenu
  (setq lsp-ui-imenu-enable t)
  ;; lsp-ui-peek
  (setq lsp-ui-peek-enable t)


Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away