fix(nvim): set winhighlight via nvim_set_option_value, not open_win
winhighlight is a window option, not an nvim_open_win config key. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>main
parent
766cfc0f8f
commit
b1bdb3c540
|
|
@ -178,7 +178,7 @@ end
|
||||||
|
|
||||||
local function _pim_float(row, col, height, width, border)
|
local function _pim_float(row, col, height, width, border)
|
||||||
local buf = vim.api.nvim_create_buf(false, true)
|
local buf = vim.api.nvim_create_buf(false, true)
|
||||||
vim.api.nvim_open_win(buf, true, {
|
local win = vim.api.nvim_open_win(buf, true, {
|
||||||
relative = "editor",
|
relative = "editor",
|
||||||
row = row,
|
row = row,
|
||||||
col = col,
|
col = col,
|
||||||
|
|
@ -187,9 +187,9 @@ local function _pim_float(row, col, height, width, border)
|
||||||
style = "minimal",
|
style = "minimal",
|
||||||
border = border or "none",
|
border = border or "none",
|
||||||
zindex = 50,
|
zindex = 50,
|
||||||
winhighlight = "Normal:Normal,NormalNC:Normal",
|
|
||||||
})
|
})
|
||||||
return vim.api.nvim_get_current_win()
|
vim.api.nvim_set_option_value("winhighlight", "Normal:Normal,NormalNC:Normal", { win = win })
|
||||||
|
return win
|
||||||
end
|
end
|
||||||
|
|
||||||
-- n/g/f: individual centered floating windows
|
-- n/g/f: individual centered floating windows
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue