Using nvim-web-devicons and lspkind as kind_icon
              
              #1146
            
            
              
  
  Closed
              
          
                  
                    
                      marovira
                    
                  
                
                  started this conversation in
                Show and tell
              
            Replies: 2 comments 2 replies
-
| Added as a recipe, thanks! https://main.cmp.saghen.dev/recipes.html#nvim-web-devicons-lspkind | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            -
| hey there @marovira, how to make this work for mini.icons? i have too many configurations to switch to  code code code	lsp = {
		array = { glyph = "" },
		color = { glyph = "" },
		constant = { glyph = "" },
		constructor = { glyph = "" },
		enum = { glyph = "" },
		event = { glyph = "" },
		file = { glyph = "" },
		folder = { glyph = "" },
		["function"] = { glyph = "" },
		interface = { glyph = "" },
		key = { glyph = "" },
		method = { glyph = "" },
		module = { glyph = "" },
		namespace = { glyph = "" },
		object = { glyph = "" },
		snippet = { glyph = "" },
		string = { glyph = "" },
		text = { glyph = "" },
		typeparameter = { glyph = "" },
		value = { glyph = "" },
		variable = { glyph = "" },
		-- Custom
		breakstatement = { glyph = "", hl = "MiniIconsGreen" },
		["break"] = { glyph = "", hl = "MiniIconsAzure" },
		call = { glyph = "", hl = "MiniIconsGrey" },
		calc = { glyph = "", hl = "MiniIconsOrange" },
		casestatement = { glyph = "", hl = "MiniIconsPurple" },
		codeium = { glyph = "", hl = "MiniIconsGreen" },
		continuestatement = { glyph = "→", hl = "MiniIconsAzure" },
		copilot = { glyph = "", hl = "MiniIconsGreen" },
		declaration = { glyph = "", hl = "MiniIconsYellow" },
		delete = { glyph = "", hl = "MiniIconsRed" },
		dostatement = { glyph = "", hl = "MiniIconsPurple" },
		forstatement = { glyph = "", hl = "MiniIconsPurple" },
		h1marker = { glyph = "", hl = "MiniIconsBlue" }, -- Used by markdown treesitter parser
		h2marker = { glyph = "", hl = "MiniIconsBlue" },
		h3marker = { glyph = "", hl = "MiniIconsBlue" },
		h4marker = { glyph = "", hl = "MiniIconsBlue" },
		h5marker = { glyph = "", hl = "MiniIconsBlue" },
		h6marker = { glyph = "", hl = "MiniIconsBlue" },
		identifier = { glyph = "", hl = "MiniIconsCyan" },
		ifstatement = { glyph = "", hl = "MiniIconsPurple" },
		list = { glyph = "", hl = "MiniIconsAzure" },
		log = { glyph = "", hl = "MiniIconsGrey" },
		lsp = { glyph = "", hl = "MiniIconsYellow" },
		macro = { glyph = "", hl = "MiniIconsRed" },
		markdownh1 = { glyph = "", hl = "MiniIconsBlue" }, -- Used by builtin markdown source
		markdownh2 = { glyph = "", hl = "MiniIconsBlue" },
		markdownh3 = { glyph = "", hl = "MiniIconsBlue" },
		markdownh4 = { glyph = "", hl = "MiniIconsBlue" },
		markdownh5 = { glyph = "", hl = "MiniIconsBlue" },
		markdownh6 = { glyph = "", hl = "MiniIconsBlue" },
		regex = { glyph = "", hl = "MiniIconsCyan" },
		["repeat"] = { glyph = "", hl = "MiniIconsOrange" },
		scope = { glyph = "", hl = "MiniIconsGreen" },
		specifier = { glyph = "", hl = "MiniIconsOrange" },
		statement = { glyph = "", hl = "MiniIconsYellow" },
		switchstatement = { glyph = "", hl = "MiniIconsPurple" },
		treesitter = { glyph = "", hl = "MiniIconsGreen" },
		type = { glyph = "", hl = "MiniIconsOrange" },
		whilestatement = { glyph = "", hl = "MiniIconsPurple" },
		question = { glyph = "", hl = "MiniIconsPurple" },
		hint = { glyph = "", hl = "MiniIconsGreen" },
		info = { glyph = "", hl = "MiniIconsCyan" },
		warning = { glyph = "", hl = "MiniIconsYellow" },
		error = { glyph = "", hl = "MiniIconsRed" },
		bug = { glyph = "", hl = "MiniIconsRed" },
	},now i wonder if i can add this for directory/filename matching for  you probanly dont wanna click this	directory = {
		home = { glyph = "" },
		nvim = { glyph = "", hl = "MiniIconsAzure" },
		snippets = { glyph = "", hl = "MiniIconsYellow" },
		-- Custom
		fish = { glyph = "", hl = "MiniIconsOrange" },
		hypr = { glyph = "", hl = "MiniIconsAzure" },
		zsh = { glyph = "", hl = "MiniIconsAzure" },
		nushell = { glyph = "", hl = "MiniIconsGreen" },
		powershell = { glyph = "", hl = "MiniIconsAzure" },
		sway = { glyph = "", hl = "MiniIconsAzure" },
		kitty = { glyph = "", hl = "MiniIconsOrange" },
		wezterm = { glyph = "", hl = "MiniIconsPurple" },
		["warp-terminal"] = { glyph = "", hl = "MiniIconsCyan" },
		mpv = { glyph = "", hl = "MiniIconsPurple" },
		vim = { glyph = "", hl = "MiniIconsGreen" },
		readonly = { glyph = "", hl = "MiniIconsYellow" },
		videos = { glyph = "", hl = "MiniIconsOrange" },
	},
	file = {
		[".bashrc"] = { glyph = "" },
		[".zshrc"] = { glyph = "" },
		-- Custom
		["lazy.lua"] = { glyph = "", hl = "MiniIconsAzure" },
		["lazy-lock.json"] = { glyph = "", hl = "MiniIconsOrange" },
		["bootstrap.lua"] = { glyph = "", hl = "MiniIconsRed" },
		["packer.lua"] = { glyph = "", hl = "MiniIconsOrange" },
		["pckr.lua"] = { glyph = "", hl = "MiniIconsYellow" },
		["autocmd.lua"] = { glyph = "", hl = "MiniIconsYellow" },
		["health.lua"] = { glyph = "", hl = "MiniIconsGreen" },
		["treesitter.lua"] = { glyph = "", hl = "MiniIconsGreen" },
		["config"] = { glyph = "", "MiniIconsGrey" },
		[".gitignore"] = { glyph = "", hl = "MiniIconsOrange" },
		[".vimrc"] = { glyph = "", hl = "MiniIconsGreen" },
		["config.fish"] = { glyph = "", hl = "MiniIconsOrange" },
		["hyprland.conf"] = { glyph = "", hl = "MiniIconsAzure" },
		[".env"] = { glyph = "", hl = "MiniIconsGrey" },
		[".SRCINFO"] = { glyph = "", hl = "MiniIconsCyan" },
		[".editorconfig"] = { glyph = "", hl = "MiniIconsGrey" },
		[".eslintignore"] = { glyph = "", hl = "MiniIconsPurple" },
		[".eslintrc"] = { glyph = "", hl = "MiniIconsPurple" },
		[".gitconfig"] = { glyph = "", hl = "MiniIconsOrange" },
		[".luacheckrc"] = { glyph = "", hl = "MiniIconsAzure" },
		[".luaurc"] = { glyph = "", hl = "MiniIconsGrey" },
		[".prettierignore"] = { glyph = "", hl = "MiniIconsOrange" },
		[".prettierrc"] = { glyph = "", hl = "MiniIconsOrange" },
		[".prettierrc.cjs"] = { glyph = "", hl = "MiniIconsOrange" },
		[".prettierrc.js"] = { glyph = "", hl = "MiniIconsOrange" },
		[".prettierrc.json"] = { glyph = "", hl = "MiniIconsOrange" },
		[".prettierrc.json5"] = { glyph = "", hl = "MiniIconsOrange" },
		[".prettierrc.mjs"] = { glyph = "", hl = "MiniIconsOrange" },
		[".prettierrc.toml"] = { glyph = "", hl = "MiniIconsOrange" },
		[".prettierrc.yaml"] = { glyph = "", hl = "MiniIconsOrange" },
		[".prettierrc.yml"] = { glyph = "", hl = "MiniIconsOrange" },
		[".pylintrc"] = { glyph = "", hl = "MiniIconsOrange" },
		["CHANGELOG.md"] = { glyph = "", hl = "MiniIconsAzure" },
		["AUTHORS"] = { glyph = "", hl = "MiniIconsPurple" },
		["AUTHORS.txt"] = { glyph = "", hl = "MiniIconsPurple" },
		["LICENCE"] = { glyph = "", hl = "MiniIconsCyan" },
		["QtProject.conf"] = { glyph = "", hl = "MiniIconsGrey" },
		["bspwmrc"] = { glyph = "", hl = "MiniIconsOrange" },
		["build"] = { glyph = "", hl = "MiniIconsAzure" },
		["build.gradle"] = { glyph = "", hl = "MiniIconsBlue" },
		["checkhealth"] = { glyph = "", hl = "MiniIconsPurple" },
		["commit_editmsg"] = { glyph = "", hl = "MiniIconsOrange" },
		["kdeglobals"] = { glyph = "", hl = "MiniIconsYellow" },
		["kdenlive-layoutsrc"] = { glyph = "", hl = "MiniIconsPurple" },
		["kdenliverc"] = { glyph = "", hl = "MiniIconsPurple" },
	},
	filetype = {
		-- Custom
		kde = { glyph = "", "MiniIconsPurple" },
		backup = { glyph = "", "MiniIconsGrey" },
		hyprlang = { glyph = "", hl = "MiniIconsAzure" },
	}, | 
Beta Was this translation helpful? Give feedback.
                  
                    1 reply
                  
                
            
  
    Sign up for free
    to join this conversation on GitHub.
    Already have an account?
    Sign in to comment
  
        
    
Uh oh!
There was an error while loading. Please reload this page.
-
This is my setup for combining
nvim-web-deviconswithlspkindto replace the built-inkind_iconfunctionality. Here are some comparisons:Here's the configuration:
If you want to use the highlight groups from
nvim-web-devicons, then add this:Note
You can also add the same function for
kind.highlightif you want to keep the highlight groups in sync with the icons.Beta Was this translation helpful? Give feedback.
All reactions