How can I just add the output of a function to a section? #2400
Unanswered
nomasprime
asked this question in
Q&A
Replies: 1 comment
-
Don't know if this is best way, seems verbose, but works:
Just has some weird display issues relating to spacing between parts, examples: no short style, no gap; short style, some gap; etc. Output from TS is too much anyway, abandoning. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Had a quick look at the customization docs but couldn't get my head around them for something that sounds pretty simple.
Just want to add the output of
nvim_treesitter#statusline()
to section c after whatever's already there.Tried
let g:airline_section_c = '%t %{nvim_treesitter#statusline(80)}'
but this seems to clobber what's already there rather than add to it.The Advanced Customization section suggests this might work:
This raises
Invalid expression: airline#util#wrap(nvim_treesitter#statusline(80)(),0)
🤷♂️Is close but the treesitter part outputs
null
.Any know how to do this?
Beta Was this translation helpful? Give feedback.
All reactions