folke / zen-mode.nvim

🧘 Distraction-free coding for Neovim
Apache License 2.0
1.69k stars 47 forks source link

feature: Allow disabling LazyVim's scope-matching vertical line #136

Closed eulersson closed 1 month ago

eulersson commented 3 months ago

Did you check the docs?

Is your feature request related to a problem? Please describe.

The visual vertical lines that match the scope of your function can be distracting (I apologize because I don't know what config option or plugin in LazyVim is creating it).

image

Describe the solution you'd like

I would like to configure it to be disabled, both when the vertical line is highlighted and when it isn't.

Describe alternatives you've considered

None.

Additional context

I apologize because I do not know who is responsible for the vertical line. I tried playing with all existing options in folke's plugin without success.

sjclayton commented 2 months ago

@eulersson

This is handled by this plugin --> https://github.com/lukas-reineke/indent-blankline.nvim

So you could do something like this in your config:

{
  "lukas-reineke/indent-blankline.nvim",
  opts = {
    scope = {
      enabled = false,
    },
  },
}
timrosu commented 2 months ago

If you want to disable it completely in zen-mode, you can add vim.cmd("silent! IBLDisable") to on_open function and vim.cmd("silent! IBLEnable") to on_close.

github-actions[bot] commented 1 month ago

This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 7 days.

github-actions[bot] commented 1 month ago

This issue was closed because it has been stalled for 7 days with no activity.