fix zero-arg documented function formatting
This commit is contained in:
parent
9bad702d91
commit
e37c77958d
@ -29,9 +29,11 @@ user code. Fennel-ls doesn't support user-code formatting as of now."
|
|||||||
"formats a special using its builtin metadata magic"
|
"formats a special using its builtin metadata magic"
|
||||||
(..
|
(..
|
||||||
(code-block
|
(code-block
|
||||||
(if metadata.fnl/arglist
|
(if (not metadata.fnl/arglist)
|
||||||
(.. "(" (tostring binding) " " (table.concat metadata.fnl/arglist " ") ")")
|
(tostring binding)
|
||||||
(tostring binding)))
|
(= 0 (length metadata.fnl/arglist))
|
||||||
|
(.. "(" (tostring binding) ")")
|
||||||
|
(.. "(" (tostring binding) " " (table.concat metadata.fnl/arglist " ") ")")))
|
||||||
"\n"
|
"\n"
|
||||||
metadata.fnl/docstring))
|
metadata.fnl/docstring))
|
||||||
|
|
||||||
|
|||||||
@ -233,6 +233,10 @@
|
|||||||
(t.i"
|
(t.i"
|
||||||
["insert"]
|
["insert"]
|
||||||
[{:documentation #(= nil $)}])
|
[{:documentation #(= nil $)}])
|
||||||
|
(check "debug.deb|"
|
||||||
|
[{:label "debug"
|
||||||
|
:documentation #(and $.value ($.value:find "```fnl\n(debug.debug)\n```" 1 true))}]
|
||||||
|
[])
|
||||||
nil)
|
nil)
|
||||||
|
|
||||||
(local eglot {:params {:capabilities {:general {:positionEncodings [:utf-8]}}
|
(local eglot {:params {:capabilities {:general {:positionEncodings [:utf-8]}}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user