lightline

URL: https://github.com/itchyny/lightline.vim/

Maintainers: Austin Horstman


Example of defining your own component_function

plugins.lightline = { enable = true; settings.component_function = { readonly = "LightlineReadonly"; };

luaConfig.pre= '' function LightlineReadonly() local is_readonly = vim.bo.readonly == 1 local filetype = vim.bo.filetype

   if is_readonly and filetype ~= "help" then
     return "RO"
   else
     return ""
   end
 end

''; };

plugins.lightline.enable

Whether to enable lightline.vim.

Type: boolean

Default: false

Example: true

Declared by:

plugins.lightline.package

The lightline.vim package to use.

Type: package

Default: pkgs.vimPlugins.lightline-vim

Declared by: