feat: import barbecue-nvim configs into the flake

This commit is contained in:
NotAShelf 2023-02-27 16:34:25 +03:00
commit 7aec23513c
No known key found for this signature in database
GPG key ID: 5B5C8895F28445F1
4 changed files with 37 additions and 0 deletions

View file

@ -69,6 +69,8 @@ with lib; let
"comment-nvim"
"kommentary"
"mind-nvim"
"nvim-navic"
"barbecue-nvim"
];
# You can either use the name of the plugin or a package.
pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package));

View file

@ -30,6 +30,7 @@
./assistant
./session
./comments
./winbar
];
pkgsModule = {config, ...}: {

View file

@ -0,0 +1,29 @@
{
pkgs,
config,
lib,
...
}:
with lib;
with builtins; let
cfg = config.vim.winbar.barbecue;
in {
options.vim.winbar.barbecue = {
enable = mkEnableOption "Enable barbecue.nvim";
};
config = (mkIf cfg.enable) {
vim.startPlugins =
[
"barbecue-nvim"
"nvim-navic"
]
++ optional (config.vim.visuals.nvimWebDevicons.enable) "nvim-web-devicons";
vim.luaConfigRC.barbecue-nvim = nvim.dag.entryAnywhere ''
config = function()
require("barbecue").setup()
end,
'';
};
}

View file

@ -0,0 +1,5 @@
_: {
imports = [
./barbecue
];
}