mirror of
https://github.com/nix-community/nixvim.git
synced 2025-07-02 21:34:33 +02:00
plugins/oil: init + tests
This commit is contained in:
parent
8338cf146f
commit
2a2f702942
3 changed files with 572 additions and 0 deletions
136
tests/test-sources/plugins/utils/oil.nix
Normal file
136
tests/test-sources/plugins/utils/oil.nix
Normal file
|
@ -0,0 +1,136 @@
|
|||
{
|
||||
empty = {
|
||||
plugins.oil.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.oil = {
|
||||
enable = true;
|
||||
|
||||
columns = {
|
||||
type = {
|
||||
enable = true;
|
||||
highlight = "Foo";
|
||||
icons = {};
|
||||
};
|
||||
icon = {
|
||||
enable = true;
|
||||
highlight = "Foo";
|
||||
defaultFile = "bar";
|
||||
directory = "dir";
|
||||
};
|
||||
size = {
|
||||
enable = true;
|
||||
highlight = "Foo";
|
||||
};
|
||||
permissions = {
|
||||
enable = true;
|
||||
highlight = "Foo";
|
||||
};
|
||||
ctime = {
|
||||
enable = true;
|
||||
highlight = "Foo";
|
||||
format = "format";
|
||||
};
|
||||
mtime = {
|
||||
enable = true;
|
||||
highlight = "Foo";
|
||||
format = "format";
|
||||
};
|
||||
atime = {
|
||||
enable = true;
|
||||
highlight = "Foo";
|
||||
format = "format";
|
||||
};
|
||||
birthtime = {
|
||||
enable = true;
|
||||
highlight = "Foo";
|
||||
format = "format";
|
||||
};
|
||||
};
|
||||
bufOptions = {
|
||||
buflisted = false;
|
||||
bufhidden = "hide";
|
||||
};
|
||||
winOptions = {
|
||||
wrap = false;
|
||||
signcolumn = "no";
|
||||
cursorcolumn = false;
|
||||
foldcolumn = "0";
|
||||
spell = false;
|
||||
list = false;
|
||||
conceallevel = 3;
|
||||
concealcursor = "n";
|
||||
};
|
||||
defaultFileExplorer = true;
|
||||
restoreWinOptions = true;
|
||||
skipConfirmForSimpleEdits = false;
|
||||
deleteToTrash = false;
|
||||
trashCommand = "trash-put";
|
||||
promptSaveOnSelectNewEntry = true;
|
||||
keymaps = {
|
||||
"g?" = "actions.show_help";
|
||||
"<CR>" = "actions.select";
|
||||
"<C-s>" = "actions.select_vsplit";
|
||||
"<C-h>" = "actions.select_split";
|
||||
"<C-t>" = "actions.select_tab";
|
||||
"<C-p>" = "actions.preview";
|
||||
"<C-c>" = "actions.close";
|
||||
"<C-l>" = "actions.refresh";
|
||||
"-" = "actions.parent";
|
||||
"_" = "actions.open_cwd";
|
||||
"`" = "actions.cd";
|
||||
"~" = "actions.tcd";
|
||||
"g." = "actions.toggle_hidden";
|
||||
};
|
||||
useDefaultKeymaps = true;
|
||||
viewOptions = {
|
||||
showHidden = false;
|
||||
isHiddenFile = ''
|
||||
function(name, bufnr)
|
||||
return vim.startswith(name, ".")
|
||||
end
|
||||
'';
|
||||
isAlwaysHidden = ''
|
||||
function(name, bufnr)
|
||||
return false
|
||||
end
|
||||
'';
|
||||
};
|
||||
float = {
|
||||
padding = 2;
|
||||
maxWidth = 0;
|
||||
maxHeight = 0;
|
||||
border = "rounded";
|
||||
winOptions = {
|
||||
winblend = 10;
|
||||
};
|
||||
};
|
||||
preview = {
|
||||
maxWidth = 0.9;
|
||||
minWidth = [40 0.4];
|
||||
width = null;
|
||||
maxHeight = 0.9;
|
||||
minHeight = [5 0.1];
|
||||
height = null;
|
||||
border = "rounded";
|
||||
winOptions = {
|
||||
winblend = 0;
|
||||
};
|
||||
};
|
||||
progress = {
|
||||
maxWidth = 0.9;
|
||||
minWidth = [40 0.4];
|
||||
width = null;
|
||||
maxHeight = 0.9;
|
||||
minHeight = [5 0.1];
|
||||
height = null;
|
||||
border = "rounded";
|
||||
minimizedBorder = "none";
|
||||
winOptions = {
|
||||
winblend = 0;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue