From 7988cb9882fa8116e1265feb4d6b56ad0f59d1f6 Mon Sep 17 00:00:00 2001 From: Alexander Courtis Date: Tue, 29 Oct 2024 16:37:04 +1100 Subject: [PATCH] chore: resolve undefined-field --- lua/nvim-tree/renderer/components/icons.lua | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/lua/nvim-tree/renderer/components/icons.lua b/lua/nvim-tree/renderer/components/icons.lua index 41082ce99b7..0ce84cb31c9 100644 --- a/lua/nvim-tree/renderer/components/icons.lua +++ b/lua/nvim-tree/renderer/components/icons.lua @@ -1,6 +1,20 @@ local DirectoryLinkNode = nil --circular dependency -local M = { i = {} } +---@class DevIcon +---@field icon string +---@field color string +---@field cterm_color string +---@field name string + +---@class DevIcons +---@field get_icon fun(name: string, ext: string?): string?, string? +---@field get_default_icon fun(): DevIcon + +local M = { + i = {}, + ---@type DevIcons? + devicons = nil, +} local function config_symlinks() M.i.symlink = #M.config.glyphs.symlink > 0 and M.config.glyphs.symlink or ""