lang/racket: add +lsp flag

And add link to racket's README.
This commit is contained in:
Henrik Lissner 2021-07-12 19:18:34 -04:00
parent aad7bc521f
commit 8b95aa5d3e
3 changed files with 5 additions and 1 deletions

View file

@ -138,7 +138,7 @@ Modules that bring support for a language or group of languages to Emacs.
+ purescript =+lsp= - TODO
+ [[file:../modules/lang/python/README.org][python]] =+cython +lsp +pyright +pyenv +conda +poetry= - TODO
+ qt - TODO
+ racket - TODO
+ [[file:../modules/lang/racket/README.org][racket]] =+lsp +xp= - TODO
+ [[file:../modules/lang/raku/README.org][raku]] - TODO
+ [[file:../modules/lang/rest/README.org][rest]] - TODO
+ rst - TODO

View file

@ -23,6 +23,7 @@ This module provides integration for [[https://github.com/greghendershott/racket
This module has no dedicated maintainers.
** Module Flags
+ =+lsp= Enables LSP support. Requires jeapostrophe/racket-langserver.
+ =+xp= Enables the explore mode, which "analyzes expanded code to explain and explore."
** Plugins

View file

@ -26,6 +26,9 @@
#'rainbow-delimiters-mode
#'highlight-quoted-mode)
(when (featurep! +lsp)
(add-hook 'racket-mode-local-vars-hook #'lsp!))
(when (featurep! +xp)
(add-hook 'racket-mode-local-vars-hook #'racket-xp-mode)
;; Both flycheck and racket-xp produce error popups, but racket-xp's are