summaryrefslogtreecommitdiff
path: root/config/init-lsp.el
diff options
context:
space:
mode:
authorFranck Cuny <franck@fcuny.net>2024-04-19 15:34:20 -0700
committerFranck Cuny <franck@fcuny.net>2024-04-19 15:34:20 -0700
commit682fa2f2e084df8665800ba95e34a2cee289ea38 (patch)
tree0e620188b2005bdb75a46592555b971b5ead8491 /config/init-lsp.el
parentcleanup snippet (diff)
downloademacs.d-682fa2f2e084df8665800ba95e34a2cee289ea38.tar.gz
remove all customization's
Since I don't fully understand them, let's not do anything, we can change them as I figure out things better. Change-Id: I109a3d47d9dc67b7fd2dca72fd2c460d00138bbd
Diffstat (limited to '')
-rw-r--r--config/init-lsp.el7
1 files changed, 4 insertions, 3 deletions
diff --git a/config/init-lsp.el b/config/init-lsp.el
index bad227d..9ad6f40 100644
--- a/config/init-lsp.el
+++ b/config/init-lsp.el
@@ -8,19 +8,20 @@
;;; Code:
(use-package eglot
- :ensure t
:after yasnippet
:bind (:map eglot-mode-map
("C-c l a" . eglot-code-actions)
- ("C-c l r" . eglot-rename))
+ ("C-c l r" . eglot-rename)
+ ("C-c l f" . eglot-format))
:config
+ (setq eglot-autoshutdown t)
(setq-default eglot-workspace-configuration
'((gopls
(usePlaceholders . t)
(staticcheck . t)
(completeUnimported . t))))
- ;; uses https://github.com/oxalica/nil for the LSP server instead of rnix
+ ;; uses https://github.com/nix-community/nixd for the LSP server instead of rnix
(add-to-list 'eglot-server-programs '(nix-mode . ("nixd"))))
(provide 'init-lsp)