Closed ThatOneOcto closed 2 years ago
I don't see any mention of "renderer" in the config above.
Please post the actual options you pass to setup
.
Sorry I made an edit, I got confused in the issue creation thing
The glyphs should go directly in the table you pass to setup.
See the setup defaults example.
Please reopen if this doesn't work for you.
Thanks it worked
Description
I am replacing vim.g.nvim_tree_icons with renderer.icons.glyphs but renderer is not recognized as a global function
Neovim version
Operating system and version
5.15.32-gentoo-dist
nvim-tree version
821f050
Minimal config
nvim-tree config file
```lua -- following options are the default -- each of these are documented in `:help nvim-tree.OPTION_NAME` -- vim.g.nvim_tree_icons = { renderer.icons.glyphs = { default = "", symlink = "", git = { unstaged = "", staged = "", unmerged = "", renamed = "➜", deleted = "", untracked = "U", ignored = "◌", }, folder = { default = "", open = "", empty = "", empty_open = "", symlink = "", }, } local status_ok, nvim_tree = pcall(require, "nvim-tree") if not status_ok then return end local config_status_ok, nvim_tree_config = pcall(require, "nvim-tree.config") if not config_status_ok then return end -- Replaces auto_close local tree_cb = nvim_tree_config.nvim_tree_callback vim.api.nvim_create_autocmd("BufEnter", { nested = true, callback = function() if #vim.api.nvim_list_wins() == 1 and vim.api.nvim_buf_get_name(0):match("NvimTree_") ~= nil then vim.cmd "quit" end end }) nvim_tree.setup { disable_netrw = true, hijack_netrw = true, open_on_setup = false, ignore_ft_on_setup = { "startify", "dashboard", "alpha", }, open_on_tab = false, hijack_cursor = false, update_cwd = true, diagnostics = { enable = true, icons = { hint = "", info = "", warning = "", error = "", }, }, update_focused_file = { enable = true, update_cwd = true, ignore_list = {}, }, system_open = { cmd = nil, args = {}, }, filters = { dotfiles = false, custom = {}, }, git = { enable = true, ```Steps to reproduce
Read the title
Expected behavior
No response
Actual behavior
No response