Switch to eglot from lsp

This commit is contained in:
Charlotte Van Petegem 2023-01-16 17:01:05 +01:00
parent 83a05f96cb
commit 51f0775287
No known key found for this signature in database
GPG key ID: 019E764B7184435A
2 changed files with 9 additions and 9 deletions

View file

@ -32,12 +32,13 @@
)
;; Language server support
(use-package lsp-mode
:commands (lsp lsp-deferred)
:config (lsp-enable-which-key-integration t)
(use-package eglot
:general
(lmap lsp-mode-map
"SPC" '(:keymap lsp-command-map)
(lmap
"SPC s" '(eglot :which-key "Add buffer to eglot")
"SPC f" '(eglot-format :which-key "Format region")
"SPC F" '(eglot-format :which-key "Format buffer")
"SPC r" '(eglot-rename :which-key "Rename symbol")
)
)
@ -58,10 +59,8 @@
;; Haskell language support
(use-package haskell-mode
:mode "\\.hs\\'"
)
(use-package lsp-haskell
:hook (haskell-mode . lsp)
:config
(require 'haskell-doc)
)
;; Folding

View file

@ -35,6 +35,7 @@
".data"
".direnv"
".envrc"
".dir-locals.el"
];
signing = {
key = "charlotte@vanpetegem.me";