nvim-web-devicons icon indicating copy to clipboard operation
nvim-web-devicons copied to clipboard

Option to disable plugin

Open veselyn opened this issue 1 month ago • 2 comments

Hi,

Is it possible to somehow disable this plugin globally?

nvim-web-devicons is being pulled in as a dependency of a plugin (oil.nvim) from my package manager (Nix) and therefore enabling icons for all of my other plugins.😔

Describe the solution you'd like The option to call setup with a boolean flag:

require'nvim-web-devicons'.setup {
 disable = true
}

veselyn avatar Nov 11 '25 16:11 veselyn

Feels more like something that oil.nvim should address, really.

gegoune avatar Nov 11 '25 17:11 gegoune

Feels more like something that oil.nvim should address, really.

Yes. Most plugins (including nvim-tree) use nvim-web-devicons only when it has been explicitly installed by the user. They don't have a hard dependency on it.

Does oil have a dependency on nvim-web-devicons or is the plugin manager adding that dependency?

alex-courtis avatar Nov 13 '25 23:11 alex-courtis