modules: add autocmd (#120)

This commit is contained in:
Gaétan Lepage 2023-01-17 00:40:29 +01:00 committed by GitHub
parent b9a4f0ca19
commit d0910a6ddb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 127 additions and 0 deletions

View file

@ -247,6 +247,20 @@
};
};
autoCmd = build {
autoCmd = [
{
event = [ "BufEnter" "BufWinEnter" ];
pattern = [ "*.c" "*.h" ];
command = "echo 'Entering a C or C++ file'";
}
{
event = "InsertEnter";
command = "norm zz";
}
];
};
ts-custom = build {
plugins.treesitter = {
enable = true;