Skip to content

nvim-web-devicons make other plugins bugged with floating texts #271

Closed
@hilmiwicak

Description

@hilmiwicak

Image / video that shows the bug

Here below is telescope with nvim-web-devicons
telescope with nvim-web-devicons

Below is telescope without nvim-web-devicons
telescope without nvim-web-devicons

Steps to reproduce

  1. Copy init.lua below
Click to expand init.lua
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not vim.loop.fs_stat(lazypath) then
  vim.fn.system({
    "git",
    "clone",
    "--filter=blob:none",
    "https://github.com/folke/lazy.nvim.git",
    "--branch=stable",
    lazypath,
  })
end
vim.opt.rtp:prepend(lazypath)

require("lazy").setup({
  { "nvim-lua/plenary.nvim", },
  {
    "nvim-telescope/telescope.nvim",
    dependencies = {
      "nvim-lua/plenary.nvim",
    },
    config = function ()
      local telescope_action_layout = require("telescope.actions.layout")

      require("telescope").setup({
        defaults = {
          initial_mode = "insert",
          mappings = {
            n = {
              ["<M-/>"] = telescope_action_layout.toggle_preview,
            },
            i = {
              ["<M-/>"] = telescope_action_layout.toggle_preview,
            }
          },
          preview = {
            hide_on_startup = true,
            filesize_limit = 10,
            treesitter = true,
          }
        },
        fzf = {
          fuzzy = true,
          override_generic_sorter = true,
          override_file_sorter = true,
          case_mode = "smart_case",
        },
      })
    end,
  },

  {
    "kyazdani42/nvim-web-devicons",
    config = function()
      require("nvim-web-devicons").setup({
        default = true,
      })
    end,
  },
})
  1. nvim -u ~/nvim-test-config/init.lua
  2. let lazy install the plugins
  3. :Telescope find_files and see that there are some floating texts
  4. Comment nvim-web-devicons part of lazy setup
  5. Close nvim
  6. nvim -u ~/nvim-test-config/init.lua
  7. :Telescope find_files and there are no floating texts anymore

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions