Closed
Description
Image / video that shows the bug
Here below is telescope with nvim-web-devicons
Below is telescope without nvim-web-devicons
Steps to reproduce
- 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,
},
})
nvim -u ~/nvim-test-config/init.lua
- let lazy install the plugins
:Telescope find_files
and see that there are some floating texts- Comment
nvim-web-devicons
part of lazy setup - Close nvim
nvim -u ~/nvim-test-config/init.lua
:Telescope find_files
and there are no floating texts anymore