From 5156e1aae36a153be98b6832ab3ced7be2b2faee Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 20 May 2024 16:06:57 +0200 Subject: refactor(hm): Rename to `modules/home` --- .../soispha/conf/nvim/plgs/flatten-nvim/default.nix | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 modules/home/soispha/conf/nvim/plgs/flatten-nvim/default.nix (limited to 'modules/home/soispha/conf/nvim/plgs/flatten-nvim/default.nix') diff --git a/modules/home/soispha/conf/nvim/plgs/flatten-nvim/default.nix b/modules/home/soispha/conf/nvim/plgs/flatten-nvim/default.nix new file mode 100644 index 00000000..cd6f8bcc --- /dev/null +++ b/modules/home/soispha/conf/nvim/plgs/flatten-nvim/default.nix @@ -0,0 +1,20 @@ +{ + pkgs, + lib, + ... +}: { + programs.nixvim = { + # TODO: package flatten-nvim though a module + + extraConfigLuaPre = '' + ${lib.strings.fileContents ./lua/flatten-nvim.lua} + if os.getenv("NVIM") ~= nil then + -- Avoid loading plugins because the host will take control of the instance anyways + return + end + ''; + extraPlugins = [ + pkgs.vimPlugins.flatten-nvim + ]; + }; +} -- cgit 1.4.1