j-morano / buffer_manager.nvim

A simple plugin to easily manage Neovim buffers.
MIT License
232 stars 12 forks source link

Can we color the modified buffer? #17

Closed twmht closed 1 year ago

twmht commented 1 year ago

When the buffer is modified but not saved yet. This is usually happen, Can we color the unsaved buffer in the pop-up menu?

j-morano commented 1 year ago

Hello! Thanks for the feedback. I think it is a good idea. I will work on it as soon as I can.

twmht commented 1 year ago

@j-morano

oh thank you. this would be good.

j-morano commented 1 year ago

Hi! I added a commit in the branch highlight-modified with this feature. In order to work, you have to configure the highlight group BufferManagerModified in your config. For example:

hi BufferManagerModified ctermfg=19 guifg=#0000af

I think it works ok, but I would appreciate if you cant test it too before merging it to main. To do it, you just have to change the branch in the plugin manager. For example, in Packer:

  use { 'j-morano/buffer_manager.nvim', branch = 'highlight-modified' }

Thank you in advance!

twmht commented 1 year ago

@j-morano

I tested that, it works.

image

Appreciated for the quick response:)

j-morano commented 1 year ago

Thank you for the feedback. I think it is a good idea. I will merge the branch with the main branch today.