mirror of
https://github.com/nix-community/nixvim.git
synced 2025-11-08 19:46:06 +01:00
parent
6b3bea319b
commit
bedd7fc3c9
2 changed files with 55 additions and 0 deletions
28
plugins/by-name/roslyn/default.nix
Normal file
28
plugins/by-name/roslyn/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
}
|
||||||
27
tests/test-sources/plugins/by-name/roslyn/default.nix
Normal file
27
tests/test-sources/plugins/by-name/roslyn/default.nix
Normal 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;
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
||||||
Loading…
Add table
Add a link
Reference in a new issue