Initial CSharp support

This commit is contained in:
Fred Drake
2024-10-01 20:48:05 -04:00
parent 32d294cd9e
commit 4972eb4147
4 changed files with 47 additions and 0 deletions
+9
View File
@@ -0,0 +1,9 @@
{
plugins.dap = {
enable = true;
extensions = {
dap-ui.enable = true;
dap-virtual-text.enable = true;
};
};
}
+16
View File
@@ -0,0 +1,16 @@
let
# Read all files in the current directory
files = builtins.readDir ./.;
# Filter out default.nix and non-.nix files
nixFiles = builtins.filter
(name: name != "default.nix" && builtins.match ".*\\.nix" name != null)
(builtins.attrNames files);
# Create a list of import statements
imports = map (name: ./. + "/${name}") nixFiles;
in {
# Import all configuration modules automatically
imports = imports;
}
+11
View File
@@ -0,0 +1,11 @@
{ pkgs, ... }: {
plugins = {
conform-nvim = {
enable = true;
# settings = { formatters_by_ft.cs = [ "csharpier" ]; };
};
lsp.servers.csharp-ls = { enable = true; };
};
}