nix-config/modules/home-manager/nvim/treesitter/arial.nix

29 lines
574 B
Nix
Raw Normal View History

2024-03-24 23:39:49 +01:00
{
config,
pkgs,
lib,
...
}: {
config =
lib.mkIf (config.user.nvim.enable-treesitter && config.user.nvim.enable)
2024-03-24 23:39:49 +01:00
{
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({})'';
};
};
}