Skip to content

Commit

Permalink
Allow setting title for widgets via winopts (#974)
Browse files Browse the repository at this point in the history
  • Loading branch information
lervag committed Jun 14, 2023
1 parent 7c1d47c commit a6d48d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lua/dap/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function M.apply_winopts(win, opts)
api.nvim_win_set_width(win, v)
elseif k == 'height' then
api.nvim_win_set_height(win, v)
elseif k == 'border' then
elseif vim.tbl_contains({ 'border', 'title' }, k) then
api.nvim_win_set_config(win, {[k]=v})
else
vim.wo[win][k] = v
Expand Down

0 comments on commit a6d48d2

Please sign in to comment.