Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

bug: AerialNav uses Normal highlight group #281

Closed
ten3roberts opened this issue Jul 21, 2023 · 2 comments
Closed

bug: AerialNav uses Normal highlight group #281

ten3roberts opened this issue Jul 21, 2023 · 2 comments
Labels
bug Something isn't working

Comments

@ten3roberts
Copy link
Contributor

Neovim version (nvim -v)

NVIM v0.10.0-dev-2054+gca9f4a7cb-Homebrew

Operating system/version

MacOs 13.4

Output of :AerialInfo

Aerial Info

Filetype: lua
Configured backends:
treesitter (supported) (attached)
lsp (not supported) [No LSP client found that supports symbols]
markdown (not supported) [Filetype is not markdown]
man (not supported) [Filetype is not man]
Show symbols: Class, Constructor, Enum, Function, Interface, Module, Method, Struct

Describe the bug

AerialNavigation floating window uses the Normal highlight group for the items, which does not always have the same background color as Float

Steps To Reproduce

  1. nvim -u repro.lua
  2. :e example.lua
  3. :AerialNavOpen

Expected Behavior

The floating window uses the Float background color

Minimal example file

function foo()
end
function bar()
end

Minimal init.lua

-- 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",
    "--single-branch",
    "https://github.com/folke/lazy.nvim.git",
    lazypath,
  })
end
vim.opt.runtimepath:prepend(lazypath)

-- install plugins
local plugins = {
  "folke/tokyonight.nvim",
  {
    "stevearc/aerial.nvim",
    config = function()
      require("aerial").setup({
        -- add your aerial config here
      })
    end,
  },
  {
    "nvim-treesitter/nvim-treesitter",
    build = ":TSUpdate",
    config = function()
      require("nvim-treesitter.configs").setup({
        ensure_installed = { "c", "lua" },
        auto_install = true,
        highlight = { enable = true },
      })
    end,
  },
  -- add any other plugins here
}
require("lazy").setup(plugins, {
  root = root .. "/plugins",
})

vim.cmd.colorscheme("tokyonight")
-- add anything else here

Additional context

Screenshot 2023-07-21 at 17 57 01

As you can see for foo it the it has a different background color than the rest of the line

@ten3roberts ten3roberts added the bug Something isn't working label Jul 21, 2023
@stevearc
Copy link
Owner

Fixed!

@ten3roberts
Copy link
Contributor Author

Thank you, works like a charm ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants