mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 00:25:42 +02:00
24 lines
371 B
Nix
24 lines
371 B
Nix
|
{
|
||
|
example = {
|
||
|
autoCmd = [
|
||
|
{
|
||
|
event = [
|
||
|
"BufEnter"
|
||
|
"BufWinEnter"
|
||
|
];
|
||
|
pattern = [
|
||
|
"*.c"
|
||
|
"*.h"
|
||
|
];
|
||
|
callback = {
|
||
|
__raw = "function() print('This buffer enters') end";
|
||
|
};
|
||
|
}
|
||
|
{
|
||
|
event = "InsertEnter";
|
||
|
command = "norm zz";
|
||
|
}
|
||
|
];
|
||
|
};
|
||
|
}
|