enhance: use a smaller icon for modified buffer in buffers component

This commit is contained in:
shadmansaleh 2021-09-26 06:22:26 +06:00
parent 5785d4b47f
commit 69b5351147
1 changed files with 1 additions and 1 deletions

View File

@ -49,7 +49,7 @@ function Buffer:get_props()
self.buftype = vim.api.nvim_buf_get_option(self.bufnr, 'buftype') self.buftype = vim.api.nvim_buf_get_option(self.bufnr, 'buftype')
self.filetype = vim.api.nvim_buf_get_option(self.bufnr, 'filetype') self.filetype = vim.api.nvim_buf_get_option(self.bufnr, 'filetype')
local modified = self.options.show_modified_status and vim.api.nvim_buf_get_option(self.bufnr, 'modified') local modified = self.options.show_modified_status and vim.api.nvim_buf_get_option(self.bufnr, 'modified')
local modified_icon = self.options.icons_enabled and ' ' or ' +' local modified_icon = self.options.icons_enabled and ' ' or ' +'
self.modified_icon = modified and modified_icon or '' self.modified_icon = modified and modified_icon or ''
self.icon = '' self.icon = ''
if self.options.icons_enabled then if self.options.icons_enabled then