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
|
@ -69,6 +69,8 @@ with lib; let
|
||||||
"comment-nvim"
|
"comment-nvim"
|
||||||
"kommentary"
|
"kommentary"
|
||||||
"mind-nvim"
|
"mind-nvim"
|
||||||
|
"nvim-navic"
|
||||||
|
"barbecue-nvim"
|
||||||
];
|
];
|
||||||
# You can either use the name of the plugin or a package.
|
# You can either use the name of the plugin or a package.
|
||||||
pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package));
|
pluginsType = with types; listOf (nullOr (either (enum availablePlugins) package));
|
||||||
|
|
|
@ -30,6 +30,7 @@
|
||||||
./assistant
|
./assistant
|
||||||
./session
|
./session
|
||||||
./comments
|
./comments
|
||||||
|
./winbar
|
||||||
];
|
];
|
||||||
|
|
||||||
pkgsModule = {config, ...}: {
|
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