2023-02-27 19:26:47 +00:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
lib,
|
|
|
|
...
|
2023-11-07 00:50:27 +00:00
|
|
|
}: let
|
2024-03-24 00:14:39 +00:00
|
|
|
inherit (lib.modules) mkIf;
|
|
|
|
inherit (lib.nvim.dag) entryAnywhere;
|
2024-02-17 22:47:47 +00:00
|
|
|
inherit (lib.nvim.lua) toLuaObject;
|
2023-11-07 00:50:27 +00:00
|
|
|
|
2024-01-05 16:24:02 +00:00
|
|
|
cfg = config.vim.presence.neocord;
|
2023-02-27 19:26:47 +00:00
|
|
|
in {
|
|
|
|
config = mkIf cfg.enable {
|
2024-01-05 16:24:02 +00:00
|
|
|
vim.startPlugins = ["neocord"];
|
2023-02-27 19:26:47 +00:00
|
|
|
|
2024-03-24 00:14:39 +00:00
|
|
|
vim.luaConfigRC.neocord = entryAnywhere ''
|
2024-01-05 16:24:02 +00:00
|
|
|
-- Description of each option can be found in https://github.com/IogaMaster/neocord#lua
|
2024-02-17 22:47:47 +00:00
|
|
|
require("neocord").setup(${toLuaObject cfg.setupOpts})
|
2023-02-27 19:26:47 +00:00
|
|
|
'';
|
|
|
|
};
|
|
|
|
}
|