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:
parent
c482f7a612
commit
6022083000
1 changed files with 1 additions and 1 deletions
|
|
@ -3,7 +3,7 @@
|
||||||
" I don't accidentally start formatting when rebasing (bad memories).
|
" I don't accidentally start formatting when rebasing (bad memories).
|
||||||
|
|
||||||
function s:format_on_save()
|
function s:format_on_save()
|
||||||
if &filetype == 'fsharp'
|
if &filetype == 'fsharp' || &filetype == 'cs'
|
||||||
return execute('lua vim.lsp.buf.format()')
|
return execute('lua vim.lsp.buf.format()')
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue