neovim-flake/modules/plugins/rich-presence/neocord/config.nix

21 lines
466 B
Nix
Raw Permalink Normal View History

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