From 99cb3fb8fc7fc073d695e7c029d9c93e95e2520c Mon Sep 17 00:00:00 2001 From: Austin Horstman Date: Mon, 9 Dec 2024 23:14:57 -0600 Subject: [PATCH] plugins/dotnet: init --- plugins/by-name/dotnet/default.nix | 31 +++++++++++++++++++ .../plugins/by-name/dotnet/default.nix | 20 ++++++++++++ 2 files changed, 51 insertions(+) create mode 100644 plugins/by-name/dotnet/default.nix create mode 100644 tests/test-sources/plugins/by-name/dotnet/default.nix diff --git a/plugins/by-name/dotnet/default.nix b/plugins/by-name/dotnet/default.nix new file mode 100644 index 00000000..c83a7d7b --- /dev/null +++ b/plugins/by-name/dotnet/default.nix @@ -0,0 +1,31 @@ +{ lib, ... }: +lib.nixvim.neovim-plugin.mkNeovimPlugin { + name = "dotnet"; + originalName = "dotnet.nvim"; + package = "dotnet-nvim"; + + maintainers = [ lib.maintainers.khaneliman ]; + + settingsOptions = { + bootstrap = { + auto_bootstrap = lib.nixvim.defaultNullOpts.mkBool true '' + Automatically call "bootstrap" when creating a new file, adding a namespace and a class to the files. + ''; + }; + + project_selection = { + path_display = lib.nixvim.defaultNullOpts.mkStr "filename_first" '' + Determines how file paths are displayed. All of Telescope's path_display options are supported. + ''; + }; + }; + + settingsExample = { + bootstrap = { + auto_bootstrap = false; + }; + project_selection = { + path_display = "truncate"; + }; + }; +} diff --git a/tests/test-sources/plugins/by-name/dotnet/default.nix b/tests/test-sources/plugins/by-name/dotnet/default.nix new file mode 100644 index 00000000..54298da7 --- /dev/null +++ b/tests/test-sources/plugins/by-name/dotnet/default.nix @@ -0,0 +1,20 @@ +{ + empty = { + plugins.dotnet.enable = true; + }; + + default = { + plugins.dotnet = { + enable = true; + + settings = { + bootstrap = { + auto_bootstrap = true; + }; + project_selection = { + path_display = "filename_first"; + }; + }; + }; + }; +}