aboutsummaryrefslogtreecommitdiff
path: root/.emacs.d/rul-init.d/lsp.el
diff options
context:
space:
mode:
authorRaúl Benencia <id@rbenencia.name>2023-07-20 07:53:35 -0700
committerRaúl Benencia <id@rbenencia.name>2023-07-22 10:45:18 -0700
commit5860445da55ac3abc3935c6ffd5e9bb4539225c9 (patch)
tree2de3124b4c0577245a0b7e1dec30732af7fcc191 /.emacs.d/rul-init.d/lsp.el
parentfd0754be08f4b2f9ef58625c17544a238afefade (diff)
emacs: move everything to ~/.emacs.d
Diffstat (limited to '.emacs.d/rul-init.d/lsp.el')
-rw-r--r--.emacs.d/rul-init.d/lsp.el17
1 files changed, 17 insertions, 0 deletions
diff --git a/.emacs.d/rul-init.d/lsp.el b/.emacs.d/rul-init.d/lsp.el
new file mode 100644
index 0000000..a565b03
--- /dev/null
+++ b/.emacs.d/rul-init.d/lsp.el
@@ -0,0 +1,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