feat: direnv

This commit is contained in:
isabel 2024-10-14 21:53:55 +01:00
parent 7f354e7caa
commit 5bc4ab03ba
No known key found for this signature in database
GPG key ID: 08A97B9A107A1798
6 changed files with 59 additions and 6 deletions

View file

@ -219,6 +219,26 @@
},
"version": "8bf8358ee326d5d8c11dcd7ac0bcc9ff97dbc785"
},
"direnv-nvim": {
"cargoLocks": null,
"date": "2024-07-08",
"extract": null,
"name": "direnv-nvim",
"passthru": null,
"pinned": false,
"src": {
"deepClone": false,
"fetchSubmodules": false,
"leaveDotGit": false,
"name": null,
"owner": "NotAShelf",
"repo": "direnv.nvim",
"rev": "3e38d855c764bb1bec230130ed0e026fca54e4c8",
"sha256": "sha256-nWdAIchqGsWiF0cQ7NwePRa1fpugE8duZKqdBaisrAc=",
"type": "github"
},
"version": "3e38d855c764bb1bec230130ed0e026fca54e4c8"
},
"editorconfig": {
"cargoLocks": null,
"date": "2023-01-10",

12
_sources/generated.nix generated
View file

@ -133,6 +133,18 @@
};
date = "2024-09-26";
};
direnv-nvim = {
pname = "direnv-nvim";
version = "3e38d855c764bb1bec230130ed0e026fca54e4c8";
src = fetchFromGitHub {
owner = "NotAShelf";
repo = "direnv.nvim";
rev = "3e38d855c764bb1bec230130ed0e026fca54e4c8";
fetchSubmodules = false;
sha256 = "sha256-nWdAIchqGsWiF0cQ7NwePRa1fpugE8duZKqdBaisrAc=";
};
date = "2024-07-08";
};
editorconfig = {
pname = "editorconfig";
version = "5b9e303e1d6f7abfe616ce4cc8d3fffc554790bf";

9
flake.lock generated
View file

@ -99,17 +99,16 @@
]
},
"locked": {
"lastModified": 1725205441,
"lastModified": 1726122135,
"narHash": "sha256-go26fmPdyBgwzHMostxKFAg23HekfD/L/U2Fnl00JN8=",
"owner": "nekowinston",
"owner": "willruggiano",
"repo": "neovim.nix",
"rev": "36761e2fcd5e81fa3b39cb72d9fbcb92098edad8",
"rev": "867d08bf296925a35a217f1d90975d0522142b9c",
"type": "github"
},
"original": {
"owner": "nekowinston",
"owner": "willruggiano",
"repo": "neovim.nix",
"rev": "36761e2fcd5e81fa3b39cb72d9fbcb92098edad8",
"type": "github"
}
},

View file

@ -35,7 +35,7 @@
# };
neovim-nix = {
url = "github:nekowinston/neovim.nix/36761e2fcd5e81fa3b39cb72d9fbcb92098edad8";
url = "github:willruggiano/neovim.nix";
inputs = {
nixpkgs.follows = "nixpkgs";
flake-parts.follows = "flake-parts";

View file

@ -42,6 +42,10 @@ src.git = "https://github.com/zbirenbaum/copilot.lua"
fetch.github = "saecki/crates.nvim"
src.git = "https://github.com/saecki/crates.nvim"
[direnv-nvim]
fetch.github = "NotAShelf/direnv.nvim"
src.git = "https://github.com/NotAShelf/direnv.nvim"
[editorconfig]
fetch.github = "gpanders/editorconfig.nvim"
src.git = "https://github.com/gpanders/editorconfig.nvim"

View file

@ -438,6 +438,24 @@ rec {
'';
};
direnv = {
src = srcs.direnv-nvim;
enabled = # lua
''
function()
return vim.fn.executable("direnv") == 1
end
'';
config = # lua
''
function()
require("direnv").setup({
autoload_direnv = true,
})
end
'';
};
# discord integration
cord = {
src = pkgs.vimPlugins.cord-nvim;