Skip to content

Commit

Permalink
plugins/lightline: fix formatting of code example
Browse files Browse the repository at this point in the history
  • Loading branch information
antonmosich committed Feb 17, 2025
1 parent d636d25 commit 3a66c8a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion plugins/by-name/lightline/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,13 +17,14 @@ lib.nixvim.plugins.mkNeovimPlugin {
description = ''
### Example of defining your own component_function
```nix
plugins.lightline = {
enable = true;
settings.component_function = {
readonly = "LightlineReadonly";
};
luaConfig.pre= '''
luaConfig.pre = '''
function LightlineReadonly()
local is_readonly = vim.bo.readonly == 1
local filetype = vim.bo.filetype
Expand All @@ -36,6 +37,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
end
''';
};
```
'';

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

0 comments on commit 3a66c8a

Please sign in to comment.