-
I've been unable to figure out how to do this with a vanilla statusline. I'm using vimscript config still and haven't had time to dive into the lua side of things yet. I can't figure out how to include metals status in my vanilla statusline (not using airline, etc). Would appreciate a nudge in the right direction! |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
Hey @gnfisher, you should be able to define a function that grabs the variable like this: function! metals#status() abort
return get(g:, 'metals_status', '')
endfunction Then when you put together your statusline you should be able to just include |
Beta Was this translation helpful? Give feedback.
Hey @gnfisher, you should be able to define a function that grabs the variable like this:
Then when you put together your statusline you should be able to just include
%{metals#status()}
. Keep in mind that by defaultmetals_status
is off, so if you're using it make sure to turn it on in yourinit_options
.