Skip to content

Commit e466d44

Browse files
committed
plugins/roslyn: init
1 parent cc89186 commit e466d44

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed

plugins/by-name/roslyn/default.nix

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{ lib, pkgs, ... }:
2+
lib.nixvim.plugins.mkNeovimPlugin {
3+
name = "roslyn";
4+
packPathName = "roslyn.nvim";
5+
package = "roslyn-nvim";
6+
7+
maintainers = [ lib.maintainers.GaetanLepage ];
8+
9+
extraConfig = cfg: {
10+
extraPlugins = [ pkgs.vimPlugins.roslyn-nvim ];
11+
extraConfigLua = ''
12+
require('roslyn').setup({
13+
-- roslyn-ls adds this command
14+
exe = 'Microsoft.CodeAnalysis.LanguageServer'
15+
})
16+
'';
17+
};
18+
19+
# TODO: Figure out how to add this package.
20+
# home.packages = [ pkgs.roslyn-ls ];
21+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
empty = {
3+
plugins.roslyn.enable = true;
4+
};
5+
}

0 commit comments

Comments
 (0)