/ nvim / lua / plugins / dressing.lua
dressing.lua
 1  --- Dressing: better input/select UI. Customizations from original Lazy spec.
 2  return {
 3    specs = {
 4      { src = 'https://github.com/stevearc/dressing.nvim', name = 'dressing.nvim' },
 5    },
 6    config = function()
 7      local dressing = require('dressing')
 8      if type(dressing) ~= 'table' or not dressing.setup then
 9        return
10      end
11      dressing.setup({
12        input = {
13          enabled = true,
14          default_prompt = 'Input',
15          trim_prompt = true,
16          title_pos = 'left',
17          insert_only = true,
18          start_in_insert = true,
19          border = 'rounded',
20          relative = 'cursor',
21          prefer_width = 40,
22        },
23        select = {
24          enabled = true,
25          backend = { 'fzf_lua', 'fzf', 'builtin', 'nui' },
26          trim_prompt = true,
27          fzf = { window = { width = 0.8, height = 0.7 } },
28          fzf_lua = { winopts = { height = 0.5, width = 0.5 } },
29          nui = {
30            position = '50%',
31            relative = 'editor',
32            border = { style = 'rounded' },
33            max_width = 160,
34            max_height = 40,
35            min_width = 40,
36            min_height = 10,
37          },
38          builtin = { border = 'rounded', relative = 'editor' },
39        },
40      })
41    end,
42  }