Open brandonpittman opened 3 years ago
Got the same issue, had to pass that key as function argument in every commands I need to disable the icon
@babygau Could you please share an example of how you passed it as a function and were able to change it?
@brandonpittman I'm on mobile so not easy to write it down. Pls see some of my mappings here for reference. It's written in Fennel but all you care is everything in between <Cmd><CR>
.
https://github.com/babygau/nix/blob/tdt/dotfiles/nvim/fnl/plugins/telescope.fnl
@babygau Thank you very much!
Because its not a think yet. Its only a opts
. We talked about here that we should make it a thing though we havent decided how yet.
Up until then, one way to have picker user defaults for any picker is something like this pattern (though many ways lead to Rome):
local builtins = require "telescope.builtin"
-- common opts users would like to have a default for
local defaults = { previewer = false, disable_devicons = true }
local pickers = setmetatable({}, {
__index = function(_, key)
if builtins[key] == nil then
error "Invalid key, please check :h telescope.builtin"
return
end
return function(opts)
opts = vim.tbl_extend("keep", opts or {}, defaults)
builtins[key](opts)
end
end,
})
-- later..
pickers.find_files()
Nevertheless, a PR to introduce this option would be very welcome.
Did something change in a recent release? I never had to Unicode tofu in the past since I passed the check of devicons not installed. I tried adding the disable_devicons = true
line as well & it doesn’t do anything (but color_devicons
does work).
@toastal I don't think so but I don't know what release you're on. Please open a new bug report with full details if you want support.
This was an upstream issue in Nixpkgs. False alarm.
Description
I'm trying to disable the devicons, but adding
disable_devicons = true
to the setup config has no effect.Neovim version
NVIM v0.6.0-dev+1602-g1a10acb99 Build type: Release LuaJIT 2.1.0-beta3
Operating system and version
macOS 11.4
Steps to reproduce
Expected behavior
devicons should not be displayed.
Actual behavior
devicons are displayed.
Minimal config