nixos/common/neovim/lightline.nix

31 lines
862 B
Nix
Raw Normal View History

2024-02-16 13:59:46 +01:00
{ 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'
\ },
\ }
'';
}
];
};
}