Skip to content

Commit 3a66c8a

Browse files
committed
plugins/lightline: fix formatting of code example
1 parent d636d25 commit 3a66c8a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

plugins/by-name/lightline/default.nix

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,14 @@ lib.nixvim.plugins.mkNeovimPlugin {
1717
description = ''
1818
### Example of defining your own component_function
1919
20+
```nix
2021
plugins.lightline = {
2122
enable = true;
2223
settings.component_function = {
2324
readonly = "LightlineReadonly";
2425
};
2526
26-
luaConfig.pre= '''
27+
luaConfig.pre = '''
2728
function LightlineReadonly()
2829
local is_readonly = vim.bo.readonly == 1
2930
local filetype = vim.bo.filetype
@@ -36,6 +37,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
3637
end
3738
''';
3839
};
40+
```
3941
'';
4042

4143
# TODO: Added 2024-08-23, remove after 24.11

0 commit comments

Comments
 (0)