This repository has been archived on 2024-05-17. You can view files and clone it, but cannot push or open issues or pull requests.
2022-10-22 23:35:27 +03:00
|
|
|
{ lib
|
2022-11-19 00:56:53 +03:00
|
|
|
, plugins
|
2022-10-22 23:35:27 +03:00
|
|
|
, hop-nvim
|
|
|
|
, nvim-orgmode
|
2023-05-22 13:42:35 +03:00
|
|
|
, nvim-colorizer
|
2022-10-22 23:35:27 +03:00
|
|
|
, org-bullets-nvim
|
|
|
|
, enableOrgMode ? false
|
|
|
|
, ...
|
|
|
|
}:
|
2022-09-18 16:10:03 +03:00
|
|
|
|
2022-10-22 23:35:27 +03:00
|
|
|
let
|
|
|
|
inherit (builtins) readFile;
|
2022-11-19 00:56:53 +03:00
|
|
|
|
|
|
|
orgmodeSettings = lib.toLua (lib.attrByPath [ "orgmode" "settings" ] { } plugins);
|
2022-10-22 23:35:27 +03:00
|
|
|
in
|
2022-09-18 16:10:03 +03:00
|
|
|
{
|
2022-10-22 23:35:27 +03:00
|
|
|
luaConfig = readFile ./hop-nvim.lua
|
2023-05-22 13:42:35 +03:00
|
|
|
+ lib.optional enableOrgMode (readFile (lib.substituteAll { src = ./nvim-orgmode.lua; inherit orgmodeSettings; }))
|
|
|
|
+ readFile ./nvim-colorizer.lua;
|
2022-09-18 16:10:03 +03:00
|
|
|
|
2023-05-22 13:42:35 +03:00
|
|
|
plugins = [ hop-nvim nvim-colorizer ]
|
2022-10-22 23:35:27 +03:00
|
|
|
++ lib.optional enableOrgMode [ nvim-orgmode org-bullets-nvim ];
|
2022-09-18 16:10:03 +03:00
|
|
|
}
|