plugins.nvim-lightbulb.settings

Options provided to the require('nvim-lightbulb').setup function.

Type: attribute set of anything

Default: { }

Example:

{
  autocmd = {
    enabled = true;
    updatetime = 200;
  };
  float = {
    enabled = false;
    text = " 󰌶 ";
    win_opts = {
      border = "rounded";
    };
  };
  line = {
    enabled = false;
  };
  number = {
    enabled = false;
  };
  sign = {
    enabled = false;
    text = "󰌶";
  };
  status_text = {
    enabled = false;
    text = " 󰌶 ";
  };
  virtual_text = {
    enabled = true;
    text = "󰌶";
  };
}

Declared by:

plugins.nvim-lightbulb.settings.action_kinds

Code action kinds to observe. To match all code actions, set to null. Otherwise, set to a list of kinds.

Example:

  [
    "quickfix"
    "refactor.rewrite"
  ]

See: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#codeActionKind

Type: null or (list of string)

Default: null

Declared by:

plugins.nvim-lightbulb.settings.hide_in_unfocused_buffer

Whether or not to hide the lightbulb when the buffer is not focused. Only works if configured during NvimLightbulb.setup.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

Whether or not to link the highlight groups automatically. Default highlight group links:

  • LightBulbSign -> DiagnosticSignInfo
  • LightBulbFloatWin -> DiagnosticFloatingInfo
  • LightBulbVirtualText -> DiagnosticVirtualTextInfo
  • LightBulbNumber -> DiagnosticSignInfo
  • LightBulbLine -> CursorLine

Only works if configured during NvimLightbulb.setup.

Plugin default: true

Type: null or boolean or raw lua code

Default: null

Declared by:

plugins.nvim-lightbulb.settings.priority

Priority of the lightbulb for all handlers except float.

Plugin default: 10

Type: null or unsigned integer, meaning >=0, or raw lua code

Default: null

Declared by:

plugins.nvim-lightbulb.settings.validate_config

Perform full validation of configuration.

  • “auto” only performs full validation in NvimLightbulb.setup.
  • “always” performs full validation in NvimLightbulb.update_lightbulb as well.
  • “never” disables config validation.

Plugin default: "auto"

Type: null or one of “auto”, “always”, “never” or raw lua code

Default: null

Declared by: