Commit 5daed6c
authored
format: Use current settings for formatting (#59)
Instead of hard-coding default values,
use the current settings to determine the options
to pass the language server
for the textDocument/formatting call.
Also pass values for `trimTrailingWhitespace` and `insertFinalNewline`
because micro has settings for those too.1 parent eca75da commit 5daed6c
1 file changed
+2
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
768 | 768 | | |
769 | 769 | | |
770 | 770 | | |
| 771 | + | |
771 | 772 | | |
772 | 773 | | |
773 | | - | |
| 774 | + | |
774 | 775 | | |
775 | 776 | | |
776 | 777 | | |
| |||
0 commit comments