parent
57e1f9a17c
commit
ae8e828514
11 changed files with 62 additions and 20 deletions
homeManagerModules/neovim/langs
|
@ -29,8 +29,9 @@ in {
|
|||
if (devShells['c-lang'] == nil) then
|
||||
devShells['c-lang'] = 1;
|
||||
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#c-lang'});
|
||||
vim.cmd[[LspStart]];
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#c-lang'}, vim.schedule_wrap(function()
|
||||
vim.cmd[[LspStart]];
|
||||
end));
|
||||
end
|
||||
end,
|
||||
});
|
||||
|
|
|
@ -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,
|
||||
});
|
||||
|
|
|
@ -4,6 +4,9 @@ self: {
|
|||
pkgs,
|
||||
...
|
||||
}: let
|
||||
inherit (self.inputs) nix-develop-nvim-src;
|
||||
inherit (self.lib.${pkgs.system}) mkVersion;
|
||||
|
||||
inherit (lib) fileContents mkBefore mkIf;
|
||||
|
||||
cfg = config.programs.neovim;
|
||||
|
@ -63,7 +66,6 @@ in {
|
|||
# lsp plugins
|
||||
nvim-lspconfig
|
||||
lsp-status-nvim
|
||||
nix-develop-nvim
|
||||
# completion plugins
|
||||
cmp-buffer
|
||||
cmp-nvim-lsp
|
||||
|
@ -73,6 +75,12 @@ in {
|
|||
;
|
||||
})
|
||||
++ [
|
||||
# FIXME: defer inside plugin instead
|
||||
(pkgs.vimPlugins.nix-develop-nvim.overrideAttrs (o: {
|
||||
name = "vimplugin-${o.pname}-${mkVersion nix-develop-nvim-src}";
|
||||
src = nix-develop-nvim-src;
|
||||
}))
|
||||
|
||||
{
|
||||
plugin = pkgs.vimPlugins.nvim-cmp;
|
||||
type = "lua";
|
||||
|
|
|
@ -23,8 +23,9 @@ in {
|
|||
if (devShells['json'] == nil) then
|
||||
devShells['json'] = 1;
|
||||
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#json'});
|
||||
vim.cmd[[LspStart]];
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#json'}, vim.schedule_wrap(function()
|
||||
vim.cmd[[LspStart]];
|
||||
end));
|
||||
end
|
||||
end,
|
||||
});
|
||||
|
|
|
@ -31,8 +31,9 @@ in {
|
|||
if (devShells['lua'] == nil) then
|
||||
devShells['lua'] = 1;
|
||||
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#lua'});
|
||||
vim.cmd[[LspStart]];
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#lua'}, vim.schedule_wrap(function()
|
||||
vim.cmd[[LspStart]];
|
||||
end));
|
||||
end
|
||||
end,
|
||||
});
|
||||
|
|
|
@ -35,8 +35,9 @@ in {
|
|||
if (devShells['markdown'] == nil) then
|
||||
devShells['markdown'] = 1;
|
||||
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#markdown'});
|
||||
vim.cmd[[LspStart]];
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#markdown'}, vim.schedule_wrap(function()
|
||||
vim.cmd[[LspStart]];
|
||||
end));
|
||||
end
|
||||
end,
|
||||
});
|
||||
|
|
|
@ -23,8 +23,9 @@ in {
|
|||
if (devShells['rust'] == nil) then
|
||||
devShells['rust'] = 1;
|
||||
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#rust'});
|
||||
vim.cmd[[LspStart]];
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#rust'}, vim.schedule_wrap(function()
|
||||
vim.cmd[[LspStart]];
|
||||
end));
|
||||
end
|
||||
end,
|
||||
});
|
||||
|
|
|
@ -29,8 +29,9 @@ in {
|
|||
if (devShells['web'] == nil) then
|
||||
devShells['web'] = 1;
|
||||
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#web'});
|
||||
vim.cmd[[LspStart]];
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#web'}, vim.schedule_wrap(function()
|
||||
vim.cmd[[LspStart]];
|
||||
end));
|
||||
end
|
||||
end,
|
||||
});
|
||||
|
@ -44,8 +45,9 @@ in {
|
|||
if (devShells['web'] == nil) then
|
||||
devShells['web'] = 1;
|
||||
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#web'});
|
||||
vim.cmd[[LspStart]];
|
||||
require('nix-develop').nix_develop({'${flakeEnv}#web'}, vim.schedule_wrap(function()
|
||||
vim.cmd[[LspStart]];
|
||||
end));
|
||||
end
|
||||
end,
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue