From 6022083000a7aac1615e79c602967cced7af1230 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Tue, 21 Jan 2025 08:23:20 +0000 Subject: [PATCH] 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. --- site-modules/core/files/vim/plugin/fmt.vim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site-modules/core/files/vim/plugin/fmt.vim b/site-modules/core/files/vim/plugin/fmt.vim index 583035f..d8bfabf 100644 --- a/site-modules/core/files/vim/plugin/fmt.vim +++ b/site-modules/core/files/vim/plugin/fmt.vim @@ -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