mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-09-16 15:13:28 +00:00
41 lines
804 B
Nix
41 lines
804 B
Nix
{
|
|
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,
|
|
'';
|
|
|
|
vim.luaConfigRC.nvim-navic = nvim.dag.entryAnywhere ''
|
|
|
|
local navic = require("nvim-navic")
|
|
|
|
require("lspconfig").clangd.setup {
|
|
on_attach = function(client, bufnr)
|
|
navic.attach(client, bufnr)
|
|
end
|
|
}
|
|
|
|
'';
|
|
};
|
|
}
|