Skip to content
This repository has been archived by the owner on Sep 20, 2023. It is now read-only.

Disable Feline on certain filetypes/buftypes/bufnames #60

Closed
d-miketa opened this issue Sep 10, 2021 · 8 comments
Closed

Disable Feline on certain filetypes/buftypes/bufnames #60

d-miketa opened this issue Sep 10, 2021 · 8 comments
Labels
kind: feature New feature or request

Comments

@d-miketa
Copy link

Some buffers really don't need a status line (e.g. NvimTree). It'd be a useful complement to force_inactive to be able to specify buffers for which the whole statusline is completely hidden.

@d-miketa d-miketa added the kind: feature New feature or request label Sep 10, 2021
@famiu
Copy link
Owner

famiu commented Sep 11, 2021

I'm wondering if it should just return an empty string (which just makes Vim show an empty rectangle instead of the statusline) if it's disabled or actually show a thin line with the same highlight as VertSplit (same as what's shown in https://github.com/famiu/feline.nvim#disable-inactive-statusline)

@d-miketa
Copy link
Author

Enable both and add a toggle, or alternatively allow users to modify its look? Is it possible to remove it completely, i.e. give the line over to the buffer within the window?

@famiu
Copy link
Owner

famiu commented Sep 11, 2021

Enable both and add a toggle

That's a lot more hassle than it's worth. Returning an empty string seems like the best way to go, but that just makes the whole thing look ugly.

or alternatively allow users to modify its look?

That's not something that's up to Feline to do, though

Is it possible to remove it completely, i.e. give the line over to the buffer within the window?

Nope

@famiu
Copy link
Owner

famiu commented Sep 11, 2021

I just added a way to disable statusline completely. Tell me if that fulfills your needs

@famiu
Copy link
Owner

famiu commented Sep 15, 2021

Closing this issue due to inactivity

@famiu famiu closed this as completed Sep 15, 2021
@n-p-e
Copy link

n-p-e commented Sep 15, 2021

Hi, it looks like that currently what disable does is turning off all the statuslines at once if there are windows in vertical split. e.g. If I have NvimTree (disabled) on the left and a normal buffer on the right, the entire statusline becomes blank if NvimTree is focused. And when the normal buffer is active, all the statuslines are displayed again.

It would be more helpful if it the disable option works buffer-wise.

@famiu famiu reopened this Sep 15, 2021
@famiu
Copy link
Owner

famiu commented Sep 15, 2021

Does the latest commit fix your issues?

@d-miketa
Copy link
Author

Sorry for previous inactivity. I had the same issue as @jakelinnzy and the latest commit fixed it. Thank you for adding this functionality. :)

@famiu famiu closed this as completed Sep 15, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
kind: feature New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants