Skip to content

Commit

Permalink
fix: don't override FloatTitle highlight (#189)
Browse files Browse the repository at this point in the history
  • Loading branch information
stevearc committed Sep 29, 2023
1 parent 977da9a commit 5ced687
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lua/oil/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,9 @@ local function set_colors()
vim.api.nvim_set_hl(0, conf.name, { default = true, link = conf.link })
end
end
if not pcall(vim.api.nvim_get_hl_by_name, "FloatTitle") then
-- TODO can remove this call once we drop support for Neovim 0.8. FloatTitle was introduced as a
-- built-in highlight group in 0.9, and we can start to rely on colorschemes setting it.
if not pcall(vim.api.nvim_get_hl_by_name, "FloatTitle", true) then
local border = vim.api.nvim_get_hl_by_name("FloatBorder", true)
local normal = vim.api.nvim_get_hl_by_name("Normal", true)
vim.api.nvim_set_hl(
Expand Down

0 comments on commit 5ced687

Please sign in to comment.