feat: add DressingSelectText highlight group (#8)
This commit is contained in:
parent
264874eb7b
commit
f8542237f3
|
@ -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,
|
||||
|
|
|
@ -1,2 +1,3 @@
|
|||
require("dressing").patch()
|
||||
vim.cmd([[highlight default link FloatTitle FloatBorder]])
|
||||
vim.cmd([[highlight default link DressingSelectText Normal]])
|
||||
|
|
Loading…
Reference in New Issue