aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/rul-init.d/lsp.el
blob: a565b034494a1e0af261169d19dbbb37c95e4fda (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
(use-package lsp-mode
  :ensure t
  :commands
  (lsp lsp-deferred)
  :hook
  (dart-mode go-mode . lsp)
  :init
  (setq lsp-keymap-prefix "H-l")
  )

(defun lsp-go-install-save-hooks ()
  (add-hook 'before-save-hook #'lsp-format-buffer t t)
  (add-hook 'before-save-hook #'lsp-organize-imports t t))

(use-package lsp-ui
  :ensure t
  :commands lsp-ui-mode)
nihil fit ex nihilo