diff options
| author | Franck Cuny <franck@fcuny.net> | 2024-04-06 11:22:57 -0700 |
|---|---|---|
| committer | Franck Cuny <franck@fcuny.net> | 2024-04-06 11:22:57 -0700 |
| commit | 7c5780a719565630f58e7751afa8c7e458c49871 (patch) | |
| tree | f8863ebcbd4a1e551a63374b3fee589affca1393 /config/init-lsp.el | |
| parent | move some display stuff (diff) | |
| download | emacs.d-7c5780a719565630f58e7751afa8c7e458c49871.tar.gz | |
a org file is definitely not the way for me
Diffstat (limited to 'config/init-lsp.el')
| -rw-r--r-- | config/init-lsp.el | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/config/init-lsp.el b/config/init-lsp.el new file mode 100644 index 0000000..bad227d --- /dev/null +++ b/config/init-lsp.el @@ -0,0 +1,28 @@ +;;; init-lsp.el --- Configure LSP integration -*- lexical-binding: t -*- +;; Author: Franck Cuny <franck@fcuny.net> + +;;; Commentary: + +;; Configure LSP integration + +;;; 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)) + :config + (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 + (add-to-list 'eglot-server-programs '(nix-mode . ("nixd")))) + +(provide 'init-lsp) + +;;; init-lsp.el ends here |
