2024-03-24 23:39:49 +01:00
|
|
|
{
|
|
|
|
config,
|
|
|
|
pkgs,
|
|
|
|
lib,
|
|
|
|
...
|
|
|
|
}: {
|
|
|
|
config =
|
2024-05-29 20:40:03 +02:00
|
|
|
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({})'';
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|