utility/direnv-vim: init

This commit is contained in:
alfarel 2025-02-25 21:24:43 -05:00 committed by raf
parent 9209a9da37
commit a5d7313abb
6 changed files with 39 additions and 0 deletions

View file

@ -204,6 +204,8 @@
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.
- Add [direnv.vim](https://github.com/direnv/direnv.vim) plugin
for automatic syncing of nvim shell environment with direnv's.
[TheColorman](https://github.com/TheColorman)

View file

@ -3,6 +3,7 @@
./binds
./ccc
./diffview
./direnv
./fzf-lua
./gestures
./icon-picker

View file

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

View file

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

View file

@ -0,0 +1,5 @@
{lib, ...}: let
inherit (lib.options) mkEnableOption;
in {
options.vim.utility.direnv.enable = mkEnableOption "syncing nvim shell environment with direnv's using `direnv.vim`";
}

View file

@ -315,6 +315,18 @@
"url": "https://github.com/sindrets/diffview.nvim/archive/4516612fe98ff56ae0415a259ff6361a89419b0a.tar.gz",
"hash": "0brabpd02596hg98bml118bx6z2sly98kf1cr2p0xzybiinb4zs9"
},
"direnv-vim": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "direnv",
"repo": "direnv.vim"
},
"branch": "master",
"revision": "ab2a7e08dd630060cd81d7946739ac7442a4f269",
"url": "https://github.com/direnv/direnv.vim/archive/ab2a7e08dd630060cd81d7946739ac7442a4f269.tar.gz",
"hash": "1hhwfnaj9ibz17ggxvhzrkinghfy51fqfa0bs482z484jpvjc31g"
},
"dracula": {
"type": "Git",
"repository": {