feat: add DressingSelectText highlight group (#8)

This commit is contained in:
Steven Arcangeli 2021-12-18 12:32:17 -08:00
parent 264874eb7b
commit f8542237f3
2 changed files with 5 additions and 0 deletions

View File

@ -27,6 +27,10 @@ M.select = function(config, items, opts, on_choice)
end
vim.api.nvim_buf_set_lines(bufnr, 0, -1, true, lines)
vim.api.nvim_buf_set_option(bufnr, "modifiable", false)
local ns = vim.api.nvim_create_namespace("DressingWindow")
for i = 1, #lines, 1 do
vim.api.nvim_buf_add_highlight(bufnr, ns, "DressingSelectText", i, 0, -1)
end
local width = util.calculate_width(max_width, config)
local winopt = {
relative = config.relative,

View File

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