self: { config, lib, pkgs, ... }: let inherit (lib) mkIf; inherit (self.inputs) vimplugin-roslyn-nvim-src; cfg = config.programs.neovim; in { config = mkIf cfg.enableIde { programs = { neovim = { extraPackages = builtins.attrValues { inherit (pkgs) roslyn-ls ; }; extraLuaConfig = # lua '' vim.api.nvim_create_autocmd('FileType', { pattern = { 'cs' }, command = 'setlocal ts=4 sw=4 sts=0 expandtab', }); require('roslyn').setup({ capabilities = require('cmp_nvim_lsp').default_capabilities(), exe = 'Microsoft.CodeAnalysis.LanguageServer', }); ''; plugins = [ (pkgs.vimUtils.buildVimPlugin { pname = "roslyn-nvim"; version = "0.0.0+${vimplugin-roslyn-nvim-src.shortRev}"; src = vimplugin-roslyn-nvim-src; }) ]; }; }; }; # For accurate stack trace _file = ./csharp.nix; }