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