doc: put documentation of icon config parameters in correct place
This commit is contained in:
parent
f6d2102e2b
commit
54af7e013d
4 changed files with 13 additions and 6 deletions
6
.github/generate.py
vendored
6
.github/generate.py
vendored
|
|
@ -100,7 +100,11 @@ COL_DEFS = [
|
|||
"*",
|
||||
False,
|
||||
"An icon for the entry's type (requires nvim-web-devicons)",
|
||||
HL + [],
|
||||
HL
|
||||
+ [
|
||||
LuaParam("default_file", "string", "Fallback icon for files when nvim-web-devicons returns nil"),
|
||||
LuaParam("directory", "string", "Icon for directories"),
|
||||
],
|
||||
),
|
||||
ColumnDef("size", "files, ssh", False, "The size of the file", HL + []),
|
||||
ColumnDef(
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ require("oil").setup({
|
|||
-- Id is automatically added at the beginning, and name at the end
|
||||
-- See :help oil-columns
|
||||
columns = {
|
||||
{ "icon", default_file = "", directory = " " },
|
||||
"icon",
|
||||
-- "permissions",
|
||||
-- "size",
|
||||
-- "mtime",
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ OPTIONS *oil-option
|
|||
-- Id is automatically added at the beginning, and name at the end
|
||||
-- See :help oil-columns
|
||||
columns = {
|
||||
{ "icon", default_file = "", directory = " " },
|
||||
"icon",
|
||||
-- "permissions",
|
||||
-- "size",
|
||||
-- "mtime",
|
||||
|
|
@ -218,8 +218,11 @@ icon *column-ico
|
|||
An icon for the entry's type (requires nvim-web-devicons)
|
||||
|
||||
Parameters:
|
||||
{highlight} `string|fun(value: string): string` Highlight group, or
|
||||
function that returns a highlight group
|
||||
{highlight} `string|fun(value: string): string` Highlight group, or
|
||||
function that returns a highlight group
|
||||
{default_file} `string` Fallback icon for files when nvim-web-devicons
|
||||
returns nil
|
||||
{directory} `string` Icon for directories
|
||||
|
||||
size *column-size*
|
||||
Adapters: files, ssh
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ local default_config = {
|
|||
-- Id is automatically added at the beginning, and name at the end
|
||||
-- See :help oil-columns
|
||||
columns = {
|
||||
{ "icon", default_file = "", directory = " " },
|
||||
"icon",
|
||||
-- "permissions",
|
||||
-- "size",
|
||||
-- "mtime",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue