We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d636d25 commit 3a66c8aCopy full SHA for 3a66c8a
plugins/by-name/lightline/default.nix
@@ -17,13 +17,14 @@ lib.nixvim.plugins.mkNeovimPlugin {
17
description = ''
18
### Example of defining your own component_function
19
20
+ ```nix
21
plugins.lightline = {
22
enable = true;
23
settings.component_function = {
24
readonly = "LightlineReadonly";
25
};
26
- luaConfig.pre= '''
27
+ luaConfig.pre = '''
28
function LightlineReadonly()
29
local is_readonly = vim.bo.readonly == 1
30
local filetype = vim.bo.filetype
@@ -36,6 +37,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
36
37
end
38
''';
39
40
+ ```
41
'';
42
43
# TODO: Added 2024-08-23, remove after 24.11
0 commit comments