Closed LordMZTE closed 1 year ago
Thank you for reporting this. Would it be possible for you to post the contents of the code here?
Sure, here's some very badly formatted lisp code which doesn't change when formatting.
(defpackage coin-toss
(:use :cl)
(:export toss-coin))
(in-package :coin-toss)
(defun toss-coin ()
0)
Here's also how I configured nvim-lspconfig
to use cl-lsp (in fennel). Might be useful.
(tset lsp-configs :cl-lsp {:default_config {:cmd [:cl-lsp]
:filetypes [:lisp]
:root_dir lspc.util.find_git_ancestor
:single_file_support true}
:settings {}})
(lspconfig.cl-lsp.setup {})
Thank you very much. Is the expected behavior to remove whitespace? The current behavior only does line indentation.
Oh I see, I was expecting removal of many consecutive lines and also split up long lines.
Indentation appears to work.
Ideally, it would be better to remove the blanks as well. Thanks for the feedback.
I'm using the server in neovim; when I format, nothing happens.
This is printed to the log file:
The code will remain unchanged even tho it has some very obvious improper formatting.