nixos/common/neovim/lightline.nix
2024-11-06 14:03:40 +01:00

30 lines
862 B
Nix
Executable file

{ pkgs, ...}:
{
programs.neovim = {
plugins = with pkgs.vimPlugins; [
{
plugin = lightline-vim;
config = ''
function! CocCurrentFunction()
return get(b:, 'coc_current_function', ''\'')
endfunction
let g:lightline = {
\ 'colorscheme': 'solarized',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'cocstatus', 'currentfunction', 'readonly', 'filename', 'modified' ],
\ [ 'gitbranch' ] ]
\ },
\ 'component_function': {
\ 'cocstatus': 'coc#status',
\ 'currentfunction': 'CocCurrentFunction',
\ 'gitbranch': 'FugitiveHead'
\ },
\ }
'';
}
];
};
}