mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-13 02:34:34 +02:00
tests/plugins: refactor (#235)
This commit is contained in:
parent
89f54be73a
commit
db5061b4db
38 changed files with 485 additions and 744 deletions
15
tests/test-sources/modules/autocmd.nix
Normal file
15
tests/test-sources/modules/autocmd.nix
Normal file
|
@ -0,0 +1,15 @@
|
|||
{
|
||||
example = {
|
||||
autoCmd = [
|
||||
{
|
||||
event = ["BufEnter" "BufWinEnter"];
|
||||
pattern = ["*.c" "*.h"];
|
||||
callback = {__raw = "function() print('This buffer enters') end";};
|
||||
}
|
||||
{
|
||||
event = "InsertEnter";
|
||||
command = "norm zz";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
8
tests/test-sources/modules/highlight.nix
Normal file
8
tests/test-sources/modules/highlight.nix
Normal file
|
@ -0,0 +1,8 @@
|
|||
{
|
||||
example = {
|
||||
options.termguicolors = true;
|
||||
highlight = {
|
||||
Normal.fg = "#ff0000";
|
||||
};
|
||||
};
|
||||
}
|
5
tests/test-sources/modules/keymaps.nix
Normal file
5
tests/test-sources/modules/keymaps.nix
Normal file
|
@ -0,0 +1,5 @@
|
|||
{
|
||||
example = {
|
||||
maps.normal."," = "<cmd>echo \"test\"<cr>";
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue