Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Icon not showing #61

Closed
Shayan-Raza opened this issue Aug 2, 2022 · 2 comments
Closed

Icon not showing #61

Shayan-Raza opened this issue Aug 2, 2022 · 2 comments
Assignees
Labels
meta Non-code related question Further information is requested

Comments

@Shayan-Raza
Copy link

image
The icon is not showing I have copied your code from the README

      \'options' : {
      \  'theme' : 'spaceduck',
      \  'section_separators' : ['', ''],
      \  'component_separators' : ['', ''],
      \  'icons_enabled' : v:true,
      \},
      \'sections' : {
      \  'lualine_a' : [ ['mode', {'upper': v:true,},], ],
      \  'lualine_b' : [ ['branch', {'icon': '',}, ], ],
      \  'lualine_c' : [ ['filename', {'file_status': v:true,},], ],
      \  'lualine_x' : [ 'encoding', 'fileformat', 'filetype' ],
      \  'lualine_y' : [ 'progress' ],
      \  'lualine_z' : [ 'location'  ],
      \},
      \'inactive_sections' : {
      \  'lualine_a' : [  ],
      \  'lualine_b' : [  ],
      \  'lualine_c' : [ 'filename' ],
      \  'lualine_x' : [ 'location' ],
      \  'lualine_y' : [  ],
      \  'lualine_z' : [  ],
      \},
      \'extensions' : [ 'fzf' ],
      \}

  lua require("lualine").setup()
@pineapplegiant
Copy link
Owner

pineapplegiant commented Aug 2, 2022

I actually noticed that in my vimrc this morning too.

There might have been some updates to how the theme is configured. I'd refer to their docs. It's hard to keep up with all the plugins, especially now since everything is moving to neovim and lua based config. I have a lot of things to update 😞

I copied their README for what to put in the init.vim & tested this and it seems to work:

lua << END
require('lualine').setup {
  options = {
    icons_enabled = true,
    theme = 'spaceduck',
    section_separators = { left = '', right = ''},
    component_separators = { left = '', right = ''},
    disabled_filetypes = {
      statusline = {},
      winbar = {},
    },
    ignore_focus = {},
    always_divide_middle = true,
    globalstatus = false,
    refresh = {
      statusline = 1000,
      tabline = 1000,
      winbar = 1000,
    }
  },
  sections = {
    lualine_a = {'mode'},
    lualine_b = {{'branch', icon = {""}}, 'diff', 'diagnostics'},
    lualine_c = {'filename'},
    lualine_x = {'encoding', 'fileformat', 'filetype'},
    lualine_y = {'progress'},
    lualine_z = {'location'}
  },
  inactive_sections = {
    lualine_a = {},
    lualine_b = {},
    lualine_c = {'filename'},
    lualine_x = {'location'},
    lualine_y = {},
    lualine_z = {}
  },
  tabline = {},
  winbar = {},
  inactive_winbar = {},
  extensions = {'fzf'}
}

require('lualine').setup()
END

Let me know if there's anything else I can help with. You can always ask over there too, they're pretty nice.

@pineapplegiant pineapplegiant self-assigned this Aug 2, 2022
@pineapplegiant pineapplegiant added question Further information is requested meta Non-code related labels Aug 2, 2022
@Shayan-Raza
Copy link
Author

Shayan-Raza commented Aug 3, 2022

The solution was using a nerd font

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
meta Non-code related question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants