From be71fd55541fd334376a1011458adac8354972d8 Mon Sep 17 00:00:00 2001 From: Matthew Lemon Date: Sat, 14 Dec 2019 21:53:11 +0000 Subject: go stuff pretty much working --- init.el | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) (limited to 'init.el') diff --git a/init.el b/init.el index eca18a9..1eecd6e 100644 --- a/init.el +++ b/init.el @@ -8,8 +8,10 @@ (require 'package) -(add-to-list 'package-archives '("org" . "https://orgmode.org/elpa")) -(add-to-list 'package-archives '("melpa" . "http://melpa.org/packages")) +(setq package-archives '(("gnu" . "https://elpa.gnu.org/packages/") + ("marmalade" . "https://marmalade-repo.org/packages/") + ("melpa" . "https://melpa.org/packages/") + ("org" . "https://orgmode.org/elpa/"))) (setq package-enable-at-startup nil) (package-initialize) @@ -222,7 +224,7 @@ :config (ido-mode t) (ido-everywhere t) - (setq ido-emable-flex-matching t)) + (setq ido-enable-flex-matching t)) ;; Python programming (use-package elpy @@ -251,6 +253,8 @@ :commands lsp-ui-mode :init) +(add-to-list 'ac-modes 'go-mode) + (use-package yasnippet :commands yas-minor-mode :hook (go-mode . yas-minor-mode)) @@ -260,3 +264,7 @@ lsp-ui-sideline-enable t lsp-ui-imenu-enable t lsp-ui-flycheck-enable t) + +(setq lsp-gopls-staticcheck t) +(setq lsp-eldoc-render-all t) +(setq lsp-gopls-complete-unimported t) -- cgit v1.2.3