plugins.dropbar.settings.bar.enable

Controls whether to enable the plugin for the current buffer and window.

If a function is provided, it will be called with the current bufnr and winid and should return a boolean.

Type: null or boolean or raw lua code

Default: null

Plugin default: lib.nixvim.mkRaw "function(buf, win, _)\n if\n not vim.api.nvim_buf_is_valid(buf)\n or not vim.api.nvim_win_is_valid(win)\n or vim.fn.win_gettype(win) ~= \"\"\n or vim.wo[win].winbar ~= \"\"\n or vim.bo[buf].ft == 'help'\n then\n return false\n end\n\n local stat = vim.uv.fs_stat(vim.api.nvim_buf_get_name(buf))\n if stat and stat.size > 1024 * 1024 then\n return false\n end\n\n return vim.bo[buf].ft == 'markdown'\n or pcall(vim.treesitter.get_parser, buf)\n or not vim.tbl_isempty(vim.lsp.get_clients({\n bufnr = buf,\n method = 'textDocument/documentSymbol',\n }))\n end\n"

Declared by:

plugins.dropbar.settings.bar.attach_events

Controls when to evaluate the enable() function and attach the plugin to corresponding buffer or window.

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

Default: null

Plugin default:

[
  "OptionSet"
  "BufWinEnter"
  "BufWritePost"
]

Declared by:

plugins.dropbar.settings.bar.hover

Whether to highlight the symbol under the cursor.

This feature requires ‘mousemoveevent’ to be enabled.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.dropbar.settings.bar.sources

List of sources to show in the winbar.

If a function is provided, it will be called with the current bufnr and winid and should return a list of sources.

For more information about sources, see |dropbar-developers-classes-dropbar_source_t|.

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

Default: null

Plugin default: lib.nixvim.mkRaw "function(buf, _)\n local sources = require('dropbar.sources')\n local utils = require('dropbar.utils')\n if vim.bo[buf].ft == 'markdown' then\n return {\n sources.path,\n sources.markdown,\n }\n end\n if vim.bo[buf].buftype == 'terminal' then\n return {\n sources.terminal,\n }\n end\n return {\n sources.path,\n utils.source.fallback({\n sources.lsp,\n sources.treesitter,\n }),\n }\nend\n"

Declared by:

plugins.dropbar.settings.bar.truncate

Whether to truncate the winbar if it doesn’t fit in the window.

Type: null or boolean or raw lua code

Default: null

Plugin default: true

Declared by:

plugins.dropbar.settings.bar.update_debounce

Wait for a short time before updating the winbar, if another update request is received within this time, the previous request will be cancelled. This improves the performance when the user is holding down a key (e.g. 'j') to scroll the window.

If you encounter performance issues when scrolling the window, try setting this option to a number slightly larger than 1000 / key_repeat_rate.

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

Default: null

Plugin default: 0

Declared by: