kevinhwang91 / nvim-hlslens

Hlsearch Lens for Neovim
BSD 3-Clause "New" or "Revised" License
769 stars 11 forks source link

The plugin modifies the background color of the status bar #27

Closed denstiny closed 2 years ago

denstiny commented 2 years ago

https://user-images.githubusercontent.com/57088952/154847525-d2573172-41bc-44db-bfb0-dbc8333684cf.mp4

kevinhwang91 commented 2 years ago

~Have you entered fzf using bqf?~

denstiny commented 2 years ago

I don't quite understand what you mean, what should I do, this is my configuration

require('hlslens').setup({
    calm_down = true,
    nearest_only = true,
    nearest_float_when = 'always'
})

vim.api.nvim_set_keymap(
    "n",
    "n",
    "<Cmd>execute('normal! ' . v:count1 . 'n')<CR><Cmd>lua require('hlslens').start()<CR>",
    { noremap = true, silent = true }
)
vim.api.nvim_set_keymap(
    "n",
    "N",
    "<Cmd>execute('normal! ' . v:count1 . 'N')<CR><Cmd>lua require('hlslens').start()<CR>",
    { noremap = true, silent = true }
)
vim.api.nvim_set_keymap("n", "*", "*<Cmd>lua require('hlslens').start()<CR>", { noremap = true })
vim.api.nvim_set_keymap("n", "#", "#<Cmd>lua require('hlslens').start()<CR>", { noremap = true })
vim.api.nvim_set_keymap("n", "g*", "g*<Cmd>lua require('hlslens').start()<CR>", { noremap = true })
vim.api.nvim_set_keymap("n", "g#", "g#<Cmd>lua require('hlslens').start()<CR>", { noremap = true })

vim.api.nvim_set_keymap("n", "<leader>l", ":noh<CR>", { noremap = true, silent = true })
kevinhwang91 commented 2 years ago

Sorry, I misunderstand this repo as my other plugin nvim-bqf.

kevinhwang91 commented 2 years ago

Look like a theme issue, hlslens will use Ignore highlight group to render padding text for nearest_float. In general, Ignore should be Ignore xxx ctermfg=0 guifg=bg.

denstiny commented 2 years ago

图片 I tried :hi Ignore guifg=red guibg=red ctermfg=red ctermbg=red , the inactive area background is still black

kevinhwang91 commented 2 years ago

What's your stl option? Paste set stl? output here, please.

denstiny commented 2 years ago

图片

kevinhwang91 commented 2 years ago

float_shadow_blend = 100 should work.

denstiny commented 2 years ago

float_shadow_blend = 100 should work.

Thank you very much