Skip to content

Commit 2ded8e2

Browse files
committed
Delete unlink border highlight functionality
1 parent 38b49bf commit 2ded8e2

File tree

3 files changed

+0
-47
lines changed

3 files changed

+0
-47
lines changed

lua/init.lua

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -111,25 +111,3 @@ vim.api.nvim_create_autocmd({ "VimLeavePre" }, {
111111
rpcrequest("neovide.quit", vim.v.exiting)
112112
end
113113
})
114-
115-
local function unlink_highlight(name)
116-
local highlight = vim.api.nvim_get_hl(0, {name=name, link=false})
117-
vim.api.nvim_set_hl(0, name, highlight)
118-
end
119-
120-
-- Neovim only reports the final highlight group in the ext_hlstate information
121-
-- So we need to unlink all the groups when the color scheme is changed
122-
-- This is quite hacky, so let the user disable it.
123-
vim.api.nvim_create_autocmd({ "ColorScheme" }, {
124-
pattern = "*",
125-
nested = false,
126-
callback = function()
127-
if vim.g.neovide_unlink_border_highlights then
128-
unlink_highlight("FloatTitle")
129-
unlink_highlight("FloatFooter")
130-
unlink_highlight("FloatBorder")
131-
unlink_highlight("WinBar")
132-
unlink_highlight("WinBarNC")
133-
end
134-
end
135-
})

src/window/settings.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@ pub struct WindowSettings {
3030
#[cfg(target_os = "macos")]
3131
pub input_macos_option_key_is_meta: OptionAsMeta,
3232
pub input_ime: bool,
33-
pub unlink_border_highlights: bool,
3433
pub show_border: bool,
3534

3635
#[option = "mousemoveevent"]
@@ -72,7 +71,6 @@ impl Default for WindowSettings {
7271
mouse_move_event: false,
7372
observed_lines: None,
7473
observed_columns: None,
75-
unlink_border_highlights: true,
7674
show_border: false,
7775
}
7876
}

website/docs/configuration.md

Lines changed: 0 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -417,29 +417,6 @@ Set the [`background`](https://neovim.io/doc/user/options.html#'background') opt
417417
starts. Possible values: _light_, _dark_, _auto_. On systems that support it, _auto_ will mirror the
418418
system theme, and will update `background` when the system theme changes.
419419

420-
#### Fix border and winbar scrolling glitches
421-
422-
VimScript:
423-
424-
```vim
425-
let g:neovide_unlink_border_highlights = v:true
426-
```
427-
428-
Lua:
429-
430-
```lua
431-
vim.g.neovide_unlink_border_highlights = true
432-
```
433-
434-
**Available since 0.12.0.**
435-
436-
Neovide uses some highlight groups for detecting the border of the windows, when scrolling. This
437-
detection is not perfect due to some limitations of Neovim, it only returns the final highlight
438-
groups for linked highlights. This option unlinks those highlight groups after the color scheme is
439-
loaded to make Neovide detect them properly.
440-
441-
If this causes other problems, you can set this option to false.
442-
443420
### Functionality
444421

445422
#### Refresh Rate

0 commit comments

Comments
 (0)