mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-20 16:15:43 +02:00
plugins/lightline: fix formatting of code example
This commit is contained in:
parent
d636d25408
commit
3a66c8a330
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
@ -36,6 +37,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
|||
end
|
||||
''';
|
||||
};
|
||||
```
|
||||
'';
|
||||
|
||||
# TODO: Added 2024-08-23, remove after 24.11
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue