Bekaboo / dropbar.nvim

IDE-like breadcrumbs, out of the box
GNU General Public License v3.0
896 stars 17 forks source link

[Feature]: Disable symbols #151

Closed marcelarie closed 2 months ago

marcelarie commented 2 months ago

Problem

I want to disable all the symbols and lsp sometimes, is there a way to do this directly via the config?

Expected behavior

have a way disabling the symbols in the config:

opts = {
  sources = {
    lsp = {
       enabled = false  
    },
    treesitter = {
       enabled = false 
    }
  },
}

This is just an example, the opts proper structure might be another one.

Bekaboo commented 2 months ago

You can disable all sources with

require('dropbar').setup({
  bar = { sources = {} },
})

But why would you use this plugin in the first place if you want to disable all sources/symbols?

marcelarie commented 2 months ago

A ok, I want to enable/disable them temporary via a command, sometimes the symbols are too distracting.

Thanks!

marcelarie commented 2 months ago

I just tried and this disables everything. I would like to disable only these:

Screenshot 2024-04-09 at 10 37 43
Bekaboo commented 2 months ago

@marcelarie Have you tried this?

local sources = require('dropbar.sources')
require('dropbar').setup({
  bar = { sources = { sources.path } },
})