EdenEast / nightfox.nvim

🦊A highly customizable theme for vim and neovim with support for lsp, treesitter and a variety of plugins.
MIT License
2.86k stars 134 forks source link

bug: floating window has wrong color #390

Closed Parsifa1 closed 6 months ago

Parsifa1 commented 6 months ago

Neovim version (nvim -v)

v0.10.0-dev-1859+g5ed55ff14c8

Operating system/version

Windows 11 WSL2 Arch

Describe the bug

I use the mini.file plug-in. Whenever I perform file operations in the floating window of this plug-in, the wrong color will appear. image

Steps To Reproduce

  1. open minifle windows with :lua MiniFiles.open()
  2. use dd to Delete one of the file
  3. occured

Expected Behavior

颜色保持正常

Repro

-- DO NOT change the paths and don't remove the colorscheme
local root = vim.fn.fnamemodify("./.repro", ":p")

-- set stdpaths to use .repro
for _, name in ipairs({ "config", "data", "state", "cache" }) do
  vim.env[("XDG_%s_HOME"):format(name:upper())] = root .. "/" .. name
end

-- bootstrap lazy
local lazypath = root .. "/plugins/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", lazypath })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  {
    "EdenEast/nightfox.nvim",
    config = function()
      require("nightfox").setup({
            options = {
                transparent = true,
            },
            groups = {
                all = {
                    NormalFloat = { fg = "fg1", bg = "NONE", },
                },
            },
      })
    end,
  },
  {
    "echasnovski/mini.files",
    event = "VeryLazy",
    opts = {
        mappings = {
            go_in_plus = '<Space>',
            reveal_cwd = '',
        },
        windows = {
            max_number = math.huge,
            -- preview = true,
            width_focus = 50,
            width_nofocus = 15,
            width_preview = 50,
        },
    }

  }
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("nordfox")
Parsifa1 commented 6 months ago

This error seems to have become normal...