plugins.dressing.settings.select.enabled

Enable the vim.ui.select implementation.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.dressing.settings.select.backend

Priority list of preferred vim.select implementations.

Plugin default:

["telescope" "fzf_lua" "fzf" "builtin" "nui"]

Type: null or (list of (string or raw lua code))

Default: null

Declared by:

plugins.dressing.settings.select.format_item_override

Override the formatting/display for a specific “kind” when using vim.ui.select. For example, code actions from vim.lsp.buf.code_action use a kind=“codeaction”. You can override the format function when selecting for that kind, e.g.

{
  codeaction = \'\'
    function(action_tuple)
      local title = action_tuple[2].title:gsub("\r\n", "\\r\\n")
      local client = vim.lsp.get_client_by_id(action_tuple[1])
      return string.format("%s\t[%s]", title:gsub("\n", "\\n"), client.name)
    end
   \'\';
}

Plugin default: {}

Type: null or (attribute set of (lua function string or raw lua code))

Default: null

Declared by:

plugins.dressing.settings.select.fzf_lua

Options for fzf-lua selector.

Plugin default: {}

Type: null or (attribute set of (anything or raw lua code))

Default: null

Declared by:

plugins.dressing.settings.select.get_config

This can be a function that accepts the opts parameter that is passed in to ‘vim.select’ or ‘vim.input’. It must return either nil or config values to use in place of the global config values for that module.

See :h dressing_get_config for more info.

Plugin default: null

Type: null or lua function string

Default: null

Declared by:

plugins.dressing.settings.select.nui

Options for nui selector.

Plugin default:

{
  position = "50%";
  size = null;
  relative = "editor";
  border = {
    style = "rounded";
  };
  buf_options = {
    swapfile = false;
    filetype = "DressingSelect";
  };
  win_options = {
    winblend = 0;
  };
  max_width = 80;
  max_height = 40;
  min_width = 40;
  min_height = 10;
}

Type: null or (attribute set of (anything or raw lua code))

Default: null

Declared by:

plugins.dressing.settings.select.telescope

Options for telescope selector.

Can be a raw lua string like:

telescope = \'\'require("telescope.themes").get_ivy({})\'\'

or an attribute set of telescope settings.

Plugin default: null

Type: null or lua code string or attribute set of anything

Default: null

Declared by:

plugins.dressing.settings.select.trim_prompt

Trim trailing : from prompt.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by: