blob: bad227d9bd339e877d308462f7a2cdad57bd1419 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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
|