feat(lua): improve fennel support
+ Add fennel-show-documentation handler (on K). + Add outline-minor-mode support. + Set tab-width to 2 in fennel-mode, for consistency with other lisp modes.
This commit is contained in:
parent
df520dfd44
commit
6065073faa
1 changed files with 11 additions and 2 deletions
|
@ -61,8 +61,17 @@ lua-language-server.")
|
||||||
:when (featurep! +fennel)
|
:when (featurep! +fennel)
|
||||||
:defer t
|
:defer t
|
||||||
:config
|
:config
|
||||||
(set-lookup-handlers! 'fennel-mode :definition #'fennel-find-definition)
|
(set-lookup-handlers! 'fennel-mode
|
||||||
(set-repl-handler! 'fennel-mode #'fennel-repl))
|
:definition #'fennel-find-definition
|
||||||
|
:documentation #'fennel-show-documentation)
|
||||||
|
(set-repl-handler! 'fennel-mode #'fennel-repl)
|
||||||
|
|
||||||
|
(setq-hook! 'fennel-mode-hook
|
||||||
|
;; To match the `tab-width' default for other lisp modes
|
||||||
|
tab-width 2
|
||||||
|
;; Don't treat autoloads or sexp openers as outline headers, we have
|
||||||
|
;; hideshow for that.
|
||||||
|
outline-regexp "[ \t]*;;;;* [^ \t\n]"))
|
||||||
|
|
||||||
|
|
||||||
;;
|
;;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue