Open al77ex1 opened 3 months ago
It's a bug in lua/config/lsp/functions.lua:29
.
original code:
callback = M.format(),
should be modified to
callback = M.format,
i.e. removing the trailing parenthesis.
However, I found that once the format_on_save
mode turned on, the current buffer would keep in an unsaved state even after you hit <C-s>
.
I'm in the React component file (.tsx) and turning on auto format when saving (\<leader> + c + t). And an error message appears:
just formatting the code (\<leader> + c + f) works.