feat: add FloatTitle highlight group (#8)

This commit is contained in:
Steven Arcangeli 2021-12-18 12:18:54 -08:00
parent 26ce743306
commit 264874eb7b
2 changed files with 4 additions and 0 deletions

View File

@ -100,6 +100,9 @@ M.add_title_to_win = function(winid, title, opts)
))
end
vim.api.nvim_buf_set_lines(bufnr, 0, -1, true, { " " .. title .. " " })
local ns = vim.api.nvim_create_namespace("DressingWindow")
vim.api.nvim_buf_clear_namespace(bufnr, ns, 0, -1)
vim.api.nvim_buf_add_highlight(bufnr, ns, "FloatTitle", 0, 0, -1)
end, 10)
end

View File

@ -1 +1,2 @@
require("dressing").patch()
vim.cmd([[highlight default link FloatTitle FloatBorder]])