mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-06 10:21:31 +00:00
feat: import barbecue-nvim configs into the flake
This commit is contained in:
parent
5a961f18a1
commit
7aec23513c
4 changed files with 37 additions and 0 deletions
|
@ -30,6 +30,7 @@
|
|||
./assistant
|
||||
./session
|
||||
./comments
|
||||
./winbar
|
||||
];
|
||||
|
||||
pkgsModule = {config, ...}: {
|
||||
|
|
29
modules/winbar/barbecue/default.nix
Normal file
29
modules/winbar/barbecue/default.nix
Normal 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,
|
||||
'';
|
||||
};
|
||||
}
|
5
modules/winbar/default.nix
Normal file
5
modules/winbar/default.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
_: {
|
||||
imports = [
|
||||
./barbecue
|
||||
];
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue