;;; init-lsp.el --- Configure LSP integration -*- lexical-binding: t -*- ;; Author: Franck Cuny ;;; Commentary: ;; Configure LSP integration ;;; Code: (use-package eglot :after yasnippet :bind (:map eglot-mode-map ("C-c l a" . eglot-code-actions) ("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/nix-community/nixd for the LSP server instead of rnix (add-to-list 'eglot-server-programs '(nix-mode . ("nixd")))) (provide 'init-lsp) ;;; init-lsp.el ends here