add lsp-mode (go only for now)

This commit is contained in:
2023-04-24 18:59:47 +02:00
parent e1d7503858
commit d5ca899137
4 changed files with 40 additions and 1 deletions

21
conf-lisp/lsp.el Normal file
View File

@@ -0,0 +1,21 @@
;; LSP mode
(use-package lsp-mode
:config
(lsp-register-custom-settings
'(("gopls.completeUnimported" t t)
("gopls.staticcheck" t t)))
;; disable infantile nonsense
(setq lsp-headerline-breadcrumb-enable nil)
(setq lsp-modeline-code-actions-enable nil)
:init
;; I'm not using any of th lsp commands, but better define a prefix
;; than being unable to reach it
(setq lsp-keymap-prefix "C-c C-l")
:commands lsp)
;; I use ivy
(use-package lsp-ivy
:commands lsp-ivy-global-workspace-symbol)