nvim-lua / kickstart.nvim

A launch point for your personal nvim configuration
MIT License
16.67k stars 16.56k forks source link

nvim-web-devicons is disabled #801

Closed paulobarros closed 3 months ago

paulobarros commented 3 months ago

Describe the bug

I can't get the icons to work, I am using a NF, my tmux session shows icons from fonts ok, but can't make it work in neovim. I am using the default config from kickstart, didn't modify nothing in the init.lua file. I am using MesloLGS NF font.

image

-- Useful for getting pretty icons, but requires a Nerd Font.
      { 'nvim-tree/nvim-web-devicons', enabled = vim.g.have_nerd_font },

image

Desktop

Neovim Version

NVIM v0.10.0-dev
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3

feoh commented 3 months ago

Hi. I have no experience with this font and can't find any details on it to know whether or not it would in fact support web devicons.

Could you please try with a more common Nerd font like firacode and see if you have success? If you do, then your problem is the font and not Neovim/Kickstart :)

dam9000 commented 3 months ago

@paulobarros you need to set vim.g.have_nerd_font = true, like this:

diff --git a/init.lua b/init.lua
index db55a9e..26f21f0 100644
--- a/init.lua
+++ b/init.lua
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
 vim.g.maplocalleader = ' '

 -- Set to true if you have a Nerd Font installed
-vim.g.have_nerd_font = false
+vim.g.have_nerd_font = true

 -- [[ Setting options ]]
 -- See `:help vim.opt`
paulobarros commented 3 months ago

I feel stupid now, how did I miss that line! Thank you!

feoh commented 3 months ago

@paulobarros You're in good company :) I was there when they made this change and totally forgot about it myself :)