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