mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-02-24 12:23:20 +00:00
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Icbff8af3a0fc527f399530718e2ef7cc6a6a6964
28 lines
623 B
Nix
28 lines
623 B
Nix
{
|
|
config,
|
|
pkgs,
|
|
lib,
|
|
...
|
|
}: let
|
|
inherit (lib.modules) mkIf;
|
|
inherit (lib.lists) optionals;
|
|
|
|
cfg = config.vim.ui.noice;
|
|
tscfg = config.vim.treesitter;
|
|
|
|
defaultGrammars = with pkgs.vimPlugins.nvim-treesitter.grammarPlugins; [vim regex lua bash markdown];
|
|
in {
|
|
config = mkIf cfg.enable {
|
|
vim = {
|
|
startPlugins = ["nui-nvim"];
|
|
treesitter.grammars = optionals tscfg.addDefaultGrammars defaultGrammars;
|
|
|
|
lazy.plugins.noice-nvim = {
|
|
package = "noice-nvim";
|
|
setupModule = "noice";
|
|
event = ["DeferredUIEnter"];
|
|
inherit (cfg) setupOpts;
|
|
};
|
|
};
|
|
};
|
|
}
|