From 38593df6bb457fc3940fcef1d93976cd56b0a2d0 Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Sun, 26 May 2024 14:00:34 -0700 Subject: massive cleanup --- config/init-lsp.el | 41 ----------------------------------------- 1 file changed, 41 deletions(-) delete mode 100644 config/init-lsp.el (limited to 'config/init-lsp.el') diff --git a/config/init-lsp.el b/config/init-lsp.el deleted file mode 100644 index e530fba..0000000 --- a/config/init-lsp.el +++ /dev/null @@ -1,41 +0,0 @@ -;;; 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-buffer)) - :hook (eglot-managed-mode . (lambda () (eglot-inlay-hints-mode -1))) - :config - (setq eglot-autoshutdown t) - (setq-default read-process-output-max (* 1024 1024)) - (setq-default eglot-workspace-configuration - '(:pylsp (:plugins (:ruff (:enabled t))) - :gopls (:usePlaceholders t - :staticcheck t - :completeUnimported t - :matcher "CaseSensitive"))) - - ;; uses https://github.com/nix-community/nixd for the LSP server instead of rnix - (add-to-list 'eglot-server-programs '(nix-mode . ("nixd")))) - -(use-package eldoc-box - :ensure t - :hook - (eglot-managed-mode . eldoc-box-hover-mode) - :custom - (eldoc-documentation-strategy 'eldoc-documentation-enthusiast) - :custom-face - (eldoc-box-body ((t (:background "#eeefff" :family "Monaspace Argon" :height 0.9))))) - -(provide 'init-lsp) - -;;; init-lsp.el ends here -- cgit 1.4.1