-1

When I update the plugin with Lazy (U) I receive this annoying message and don't known how to solve it.

enter image description here

enter image description here

It seems it is due to lualine.lua. Is it correct ?

 return {
  "nvim-lualine/lualine.nvim",
  dependencies = { "nvim-tree/nvim-web-devicons"},
  config = function()
    local lualine = require("lualine")
    local lazy_status = require("lazy.status") -- to configure lazy pending updates count

    local colors = {
      blue = "#65D1FF",
      green = "#3EFFDC",
      violet = "#FF61EF",
      yellow = "#FFDA7B",
      red = "#FF4A4A",
      fg = "#C3CCDC",
      bg = "#112638",
      black = "#28262b",
      inactibe_bg = "#2C3043",
      grey = "#4b4453",
      light_grey = "#525252",
     }

    local my_lualine_theme = {
      normal = {
        a = { fg = colors.black, bg = colors.violet },
        b = { fg = colors.white, bg = colors.grey },
        c = { fg = colors.white, bg = colors.grey },
      },

      insert = { a = { fg = colors.black, bg = colors.blue } },
      visual = { a = { fg = colors.black, bg = colors.green } },
      replace = { a = { fg = colors.black, bg = colors.red } },
      command = { a = { fg = colors.black, bg = colors.yellow }},

      inactive = {
        a = { fg = colors.white, bg = colors.grey },
        b = { fg = colors.white, bg = colors.light_grey },
        c = { fg = colors.white, bg = colors.light_grey },
      }, 
    }

    -- configure lualine with modified theme
    lualine.setup({
      options = {
        theme = my_lualine_theme,
       -- component_separators = '|',
        component_separators = { left = '', right = ''},
        section_separators = { left = '', right = '' },
      },
      sections = {
         lualine_a = { { 'mode', separator = { left = '' }, right_padding = 2 } },
         -- lualine_b = {{ 'filename', file_status = true,  path = 0 }},
         lualine_b = {'branch', 'diff', 'diagnostics'},
         --lualine_c = {'branch'}, --[[ add your center compoentnts here in place of this comment ]]
         lualine_c = {'filename'},
         
        lualine_x = {
          {
            lazy_status.updates,
            cond = lazy_status.has_updates,
            color = { fg = "#ff9e64" },
          },
          --{ "encoding" },
          --{ "fileformat" },
          { "filetype" },
        },
        lualine_y = {
          'encoding', 'fileformat', 'progress'
        },
        lualine_z = {
           { 'location', separator = { right = '' }, left_padding = 2 },
        },
      },
      inactive_sections = {
       lualine_a = { { 'mode',  separator = { left = '' }, right_padding = 2 } },
       --lualine_b = {{ 'filename', path = 0 }},
       lualine_b = {'filename'},
       lualine_c = {'filetype'},
       lualine_x = {'branch'},
       lualine_y = {'encoding', 'fileformat', 'progress'},
       lualine_z = { {'location', separator = { right = '' }, left_padding = 2 } }, 
      },
      tabline = {},
      extensions = {'fzf', 'nerdtree'},
    })
  end,
}
4
  • 1
    Welcome to Vim! It would be good if you could paste the Lazy log in textual form. The picture is difficult to read and to search :-| Commented Jul 9 at 12:14
  • 1
    ok I believed clicking on it will enlarge the picture to easily read the content.. I will do next time. :) Commented Jul 9 at 14:54
  • 1
    A larger picture is still a picture... inaccessible to visually impaired people, takes ages to load on slow connections, invites people to comment on your choice of color scheme... the list goes on.
    – Friedrich
    Commented Jul 9 at 16:46
  • Please don't post images of text: edit to replace the image with text. You are probably interested in How to debug my vimrc. As things stand, it will be difficult to answer your question because of the missing information (please add the exact error text and provide a minimal configuration that reproduces the problem).
    – D. Ben Knoble
    Commented Jul 9 at 21:14

0

Browse other questions tagged or ask your own question.