1
0
Fork 0
mirror of https://github.com/nix-community/nixvim.git synced 2025-11-08 11:36:07 +01:00

plugins/roslyn: init module

https://github.com/seblyng/roslyn.nvim
This commit is contained in:
Austin Horstman 2025-10-04 20:35:50 -05:00
parent 6b3bea319b
commit bedd7fc3c9
2 changed files with 55 additions and 0 deletions

View file

@ -0,0 +1,28 @@
{ config, lib, ... }:
lib.nixvim.plugins.mkNeovimPlugin {
name = "roslyn";
package = "roslyn-nvim";
dependencies = [
"roslyn_ls"
];
maintainers = [ lib.maintainers.khaneliman ];
extraConfig = {
warnings = lib.nixvim.mkWarnings "plugins.roslyn" {
when = config.lsp.servers.roslyn_ls.enable;
message = ''
You have enabled both `lsp.servers.roslyn_ls` and `plugins.roslyn`.
This causes duplicate lsps to attach to the buffer. It is recommended to disable one.
'';
};
};
settingsExample = {
broad_search = true;
lock_target = true;
silent = true;
};
}

View file

@ -0,0 +1,27 @@
{
empty = {
# TODO: 2025-10-03
# Transient dependency `vmr` has a build failure
# https://github.com/NixOS/nixpkgs/issues/431811
dependencies.roslyn_ls.enable = false;
plugins.roslyn.enable = true;
};
defaults = {
# TODO: 2025-10-03
# Transient dependency `vmr` has a build failure
# https://github.com/NixOS/nixpkgs/issues/431811
dependencies.roslyn_ls.enable = false;
plugins.roslyn = {
enable = true;
settings = {
filewatching = "auto";
choose_target = null;
ignore_target = null;
broad_search = false;
lock_target = false;
silent = false;
};
};
};
}