feat: add plugin `dressing`

This commit is contained in:
Sven Vogel 2024-11-07 20:12:31 +01:00
parent 38fbfb61c1
commit e42c21740f
2 changed files with 53 additions and 0 deletions

16
lua/config/ui.lua Normal file
View File

@ -0,0 +1,16 @@
--
-- User interface configuration
--
-- ..............................................
--
-- Author: Sven Vogel
-- Created: 07.11.2024
-- Edited: 07.11.2024
--
-- ==============================================
return {
border = 'rounded',
winhighlight = 'NormalFloat:DiagnosticError'
}

37
lua/plugins/dressing.lua Normal file
View File

@ -0,0 +1,37 @@
--
-- Improve the default vim.ui interfaces
--
-- Source: https://github.com/stevearc/dressing.nvim
-- ..............................................
--
-- Author: Sven Vogel
-- Created: 07.11.2024
-- Edited: 07.11.2024
--
-- ==============================================
ui = require 'config.ui'
return {
{
'stevearc/dressing.nvim',
opts = {
input = {
enabled = true,
border = ui.border,
trim_prompt = true,
win_options = {
winhighlight = ui.winhighlight
}
},
select = {
enabled = true,
trim_prompt = true,
win_options = {
winhighlight = ui.winhighlight
}
}
}
}
}