From e42c21740f0c2914f0cab7ae2b03786de58060b2 Mon Sep 17 00:00:00 2001 From: servostar Date: Thu, 7 Nov 2024 20:12:31 +0100 Subject: [PATCH] feat: add plugin `dressing` --- lua/config/ui.lua | 16 ++++++++++++++++ lua/plugins/dressing.lua | 37 +++++++++++++++++++++++++++++++++++++ 2 files changed, 53 insertions(+) create mode 100644 lua/config/ui.lua create mode 100644 lua/plugins/dressing.lua diff --git a/lua/config/ui.lua b/lua/config/ui.lua new file mode 100644 index 0000000..d0301eb --- /dev/null +++ b/lua/config/ui.lua @@ -0,0 +1,16 @@ + +-- +-- User interface configuration +-- +-- .............................................. +-- +-- Author: Sven Vogel +-- Created: 07.11.2024 +-- Edited: 07.11.2024 +-- +-- ============================================== + +return { + border = 'rounded', + winhighlight = 'NormalFloat:DiagnosticError' +} diff --git a/lua/plugins/dressing.lua b/lua/plugins/dressing.lua new file mode 100644 index 0000000..fe4ba00 --- /dev/null +++ b/lua/plugins/dressing.lua @@ -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 + } + } + } + } +}