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.
neovim/plugins/ux/default.nix

24 lines
544 B
Nix
Raw Normal View History

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-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-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;
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 ];
}