fix(nvim): defer vim calls

This commit is contained in:
matt1432 2024-12-22 12:42:29 -05:00
parent 57e1f9a17c
commit ae8e828514
11 changed files with 62 additions and 20 deletions
homeManagerModules/neovim/langs/csharp

View file

@ -70,11 +70,10 @@ in {
if (devShells['csharp'] == nil) then
devShells['csharp'] = 1;
require('nix-develop').nix_develop({'${flakeEnv}#csharp'});
startRoslyn();
os.execute('sleep 1')
vim.cmd[[e]]; -- reload to attach on current file
require('nix-develop').nix_develop({'${flakeEnv}#csharp'}, vim.schedule_wrap(function()
startRoslyn();
vim.cmd[[e]]; -- reload to attach on current file
end));
end
end,
});