diff options
Diffstat (limited to '')
-rw-r--r-- | config/init-lsp.el | 7 |
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) |