nvf/modules/plugins/rich-presence/neocord/config.nix

21 lines
466 B
Nix
Raw Permalink Normal View History

{
config,
lib,
...
}: 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;
cfg = config.vim.presence.neocord;
in {
config = mkIf cfg.enable {
vim.startPlugins = ["neocord"];
2024-03-24 00:14:39 +00:00
vim.luaConfigRC.neocord = entryAnywhere ''
-- 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})
'';
};
}