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