Skip to content

Option to disable plugin #614

Closed
Closed

Description

@veselyn

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
}

Activity

  1. added theissue type on Nov 11, 2025
  2. gegoune commented on Nov 11, 2025

    @gegoune
    Collaborator

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

  3. alex-courtis commented on Nov 13, 2025

    @alex-courtis
    Member

    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?

  4. unemotioned commented on May 27, 2026

    @unemotioned
    return {
        'nvim-tree/nvim-web-devicons',
        opts = { variant = 'dark' },
        enabled = false,
    }

    you can do the enabled = false and this works for every plugins I guess
    I use the lazy.nvim

  5. locked and limited conversation to collaborators on May 27, 2026
  6. converted this issue into a discussion #645 on May 27, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions