Added csharp format support, cleaned neo-tree's aesthetics a bit

This commit is contained in:
Fred Drake
2024-10-02 00:01:44 -04:00
parent 4972eb4147
commit 1b8b135353
7 changed files with 65 additions and 13 deletions
+14
View File
@@ -0,0 +1,14 @@
{
# Couldn't get csharpier to work with nixvim -- package requires Dotnet SDK v6
# but LSP requires v8. Workaround for now is to add csharpier as a tool in
# the solution itself, and add a hook here to reformat on save.
# TODO: Look at how to get rid of this hack
extraConfigLua = ''
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = "*.cs",
command = "silent !dotnet dotnet-csharpier %"
})
'';
}
-11
View File
@@ -1,11 +0,0 @@
{ pkgs, ... }: {
plugins = {
conform-nvim = {
enable = true;
# settings = { formatters_by_ft.cs = [ "csharpier" ]; };
};
lsp.servers.csharp-ls = { enable = true; };
};
}