plugins.lightline.settings
Options provided to the require('lightline').setup
function.
Type: attribute set of anything
Default:
{ }
Example:
{
active = {
right = [
[
"lineinfo"
]
[
"percent"
]
[
"fileformat"
"fileencoding"
"filetype"
"charvaluehex"
]
];
};
colorscheme = "one";
component = {
charvaluehex = "0x%B";
lineinfo = "%3l:%-2v%<";
};
component_function = {
gitbranch = "FugitiveHead";
};
inactive = [ ];
mode_map = {
"<C-s>" = "SB";
"<C-v>" = "VB";
i = "I";
n = "N";
v = "V";
};
}
Declared by:
plugins.lightline.settings.active
Components placement for the active window.
Type: null or (attribute set of ((list of list of string) or raw lua code))
Default:
null
Plugin default:
{
left = [
[
"mode"
"paste"
]
[
"readonly"
"filename"
"modified"
]
];
right = [
[
"lineinfo"
]
[
"percent"
]
[
"fileformat"
"fileencoding"
"filetype"
]
];
}
Declared by:
plugins.lightline.settings.colorscheme
The colorscheme to use for lightline.
Default theme is equal to powerline
.
List of supported colorschemes can be found at https://github.com/itchyny/lightline.vim/blob/master/colorscheme.md.
Type: null or string or raw lua code
Default:
null
Plugin default: "default"
Declared by:
plugins.lightline.settings.component
Lightline component definitions. Uses ‘statusline’ syntax.
Consult :h 'statusline'
for a list of what’s available.
Type: null or (attribute set of (string or raw lua code))
Default:
null
Plugin default:
{
absolutepath = "%F";
bufnum = "%n";
charvalue = "%b";
charvaluehex = "%B";
close = "%999X X ";
column = "%c";
fileencoding = "%{&fenc!=#\" \"?&fenc=&enc}";
fileformat = "%{&ff}";
filename = "%t";
filetype = "%{&ft!=#\"\"?&ft=\"no ft\"}";
line = "%l";
lineinfo = "%3l=%-2c";
mode = "%{lightline#mode()}";
modified = "%M";
paste = "%{&paste?\"PASTE\"=\"\"}";
percent = "%3p%%";
percentwin = "%P";
readonly = "%R";
relativepath = "%f";
spell = "%{&spell?&spelllang=\" \"}";
winnr = "%{winnr()}";
}
Declared by:
plugins.lightline.settings.component_function
A list of function component definitions.
You can use the name of a function defined elsewhere.
Type: null or (attribute set of (string or raw lua code))
Default:
null
Plugin default: { }
Declared by:
plugins.lightline.settings.inactive
Components placement for inactive windows.
Type: null or (attribute set of ((list of list of string) or raw lua code))
Default:
null
Plugin default:
{
left = [
"filename"
];
right = [
[
"lineinfo"
]
[
"percent"
]
];
}
Declared by:
plugins.lightline.settings.mode_map
Mode name mappings
Type: null or (attribute set of (string or raw lua code))
Default:
null
Plugin default:
{
"<C-s>" = "S-BLOCK";
"<C-v>" = "V-BLOCK";
R = "REPLACE";
S = "S-LINE";
V = "V-LINE";
c = "COMMAND";
i = "INSERT";
n = "NORMAL";
s = "SELECT";
t = "TERMINAL";
v = "VISUAL";
}
Declared by:
plugins.lightline.settings.tab
A dictionary to store the tab components in each tabs.
Type: null or (attribute set of ((list of string) or raw lua code))
Default:
null
Plugin default:
{
active = [
"tabnum"
"filename"
"modified"
];
inactive = [
"tabnum"
"filename"
"modified"
];
}
Declared by:
plugins.lightline.settings.tabline
Components placement for tabline.
Type: null or (attribute set of ((list of list of string) or raw lua code))
Default:
null
Plugin default:
{
left = [
[
"tabs"
]
];
right = [
[
"close"
]
];
}
Declared by: