nix-config/modules/home-manager/nvim/treesitter/arial.nix
Gabe Venberg 9eb783a3e8 moved home-manager options to the "home" namespace
this frees up the "host" namespace for host-wide options.
2024-04-23 16:56:34 -05:00

29 lines
545 B
Nix

{
config,
pkgs,
lib,
...
}: {
config =
lib.mkIf config.home.nvim.enable-treesitter
{
programs.nixvim = {
keymaps = [
{
action = ":AerialToggle!<CR>";
key = "<leader>o";
mode = "n";
options = {
silent = true;
desc = "toggle outline";
};
}
];
extraPlugins = with pkgs.vimPlugins; [
aerial-nvim
];
extraConfigLua = ''require("aerial").setup({})'';
};
};
}