chore(vim): format csharp files with the lsp

This will be using `dotnet format` under the hood and take any settings from
the editorconfig. The advantage of this is it will only do the file, with
`dotnet format` you need todo the hole solution.
This commit is contained in:
Ade Attwood 2025-01-21 08:23:20 +00:00
parent c482f7a612
commit 6022083000

View file

@ -3,7 +3,7 @@
" I don't accidentally start formatting when rebasing (bad memories).
function s:format_on_save()
if &filetype == 'fsharp'
if &filetype == 'fsharp' || &filetype == 'cs'
return execute('lua vim.lsp.buf.format()')
endif