Switch to eglot from lsp
This commit is contained in:
parent
83a05f96cb
commit
51f0775287
2 changed files with 9 additions and 9 deletions
|
@ -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
|
||||
|
|
|
@ -35,6 +35,7 @@
|
|||
".data"
|
||||
".direnv"
|
||||
".envrc"
|
||||
".dir-locals.el"
|
||||
];
|
||||
signing = {
|
||||
key = "charlotte@vanpetegem.me";
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue