aboutsummaryrefslogtreecommitdiff
path: root/.emacs.local.d/modes
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2023-07-10 06:57:22 -0700
committerRaúl Benencia <id@rbenencia.name>2023-07-10 06:57:22 -0700
commitf533b9fd2f2364739540a7a7d35fd9d00ff5643e (patch)
treed3c8742062103e00f3efd3280b6409b189c3d6ee /.emacs.local.d/modes
parent86236c80ea28f53bce50f63de1f940e661948130 (diff)
emacs: lsp mode
Diffstat (limited to '.emacs.local.d/modes')
-rw-r--r--.emacs.local.d/modes/lsp.el17
1 files changed, 8 insertions, 9 deletions
diff --git a/.emacs.local.d/modes/lsp.el b/.emacs.local.d/modes/lsp.el
index 1baf1b3..a565b03 100644
--- a/.emacs.local.d/modes/lsp.el
+++ b/.emacs.local.d/modes/lsp.el
@@ -1,18 +1,17 @@
(use-package lsp-mode
:ensure t
- :commands (lsp lsp-deferred)
- :hook (go-mode . lsp-deferred))
-
-;;Set up before-save hooks to format buffer and add/delete imports.
-;;Make sure you don't have other gofmt/goimports hooks enabled.
+ :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))
-;;Optional - provides fancier overlays.
(use-package lsp-ui
:ensure t
- :commands lsp-ui-mode
- :init
-)
+ :commands lsp-ui-mode)
nihil fit ex nihilo