plugins.dressing.settings.select.enabled

Enable the vim.ui.select implementation.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.dressing.settings.select.backend

Priority list of preferred vim.select implementations.

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

Default: null

Plugin default:

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

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
   \'\';
}

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

Default: null

Plugin default: {}

Declared by:

plugins.dressing.settings.select.fzf_lua

Options for fzf-lua selector.

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

Default: null

Plugin default: {}

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.

Type: null or lua function string

Default: null

Plugin default: null

Declared by:

plugins.dressing.settings.select.nui

Options for nui selector.

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

Default: null

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;
}

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.

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

Default: null

Plugin default: null

Declared by:

plugins.dressing.settings.select.trim_prompt

Trim trailing : from prompt.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by: