utility/nix-develop: init

This commit is contained in:
alfarel 2025-02-25 21:16:32 -05:00 committed by raf
parent 85ca2bc11f
commit 9209a9da37
6 changed files with 38 additions and 0 deletions

View file

@ -202,6 +202,8 @@
- Add missing `yazi.nvim` dependency (`snacks.nvim`).
- Add [mkdir.nvim](https://github.com/jghauser/mkdir.nvim) plugin
for automatic creation of parent directories when editing a nested file.
- Add [nix-develop.nvim](https://github.com/figsoda/nix-develop.nvim) plugin
for in-neovim `nix develop`, `nix shell` and more.
[TheColorman](https://github.com/TheColorman)

View file

@ -12,6 +12,7 @@
./motion
./multicursors
./new-file-template
./nix-develop
./outline
./preview
./surround

View file

@ -0,0 +1,12 @@
{
config,
lib,
...
}: let
inherit (lib.modules) mkIf;
cfg = config.vim.utility.nix-develop;
in {
vim = mkIf cfg.enable {
startPlugins = ["nix-develop-nvim"];
};
}

View file

@ -0,0 +1,6 @@
{
imports = [
./config.nix
./nix-develop.nix
];
}

View file

@ -0,0 +1,5 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
in {
options.vim.utility.nix-develop.enable = mkEnableOption "in-neovim `nix develop`, `nix shell`, and more using `nix-develop.nvim`";
}

View file

@ -1316,6 +1316,18 @@
"url": "https://github.com/otavioschwanck/new-file-template.nvim/archive/6ac66669dbf2dc5cdee184a4fe76d22465ca67e8.tar.gz",
"hash": "0c7378c3w6bniclp666rq15c28akb0sjy58ayva0wpyin4k26hl3"
},
"nix-develop-nvim": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "figsoda",
"repo": "nix-develop.nvim"
},
"branch": "main",
"revision": "afea026f5c478c000a8af8de87f7b711676387ab",
"url": "https://github.com/figsoda/nix-develop.nvim/archive/afea026f5c478c000a8af8de87f7b711676387ab.tar.gz",
"hash": "0nwjgr19pzdxd7yygz380b388qcfbzp9svs916kh0zayzi9yxc2k"
},
"noice-nvim": {
"type": "Git",
"repository": {