luukvbaal / statuscol.nvim

Status column plugin that provides a configurable 'statuscolumn' and click handlers.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

folds icon not showing up

eduardoarandah opened this issue · comments

Default config not showing folds.

image

Tried:

copying default options and adding stuff to narrow down the issue

image

Tried:

in :h statuscol says: "text and condition functions are passed an args table with the following elements"

so I did that, but no luck.

image

how to debug this issue?

The builtin segments for this plugin follow neovim's options that affect the "gutter" area.
Is your 'foldcolumn' option set?

The builtin segments for this plugin follow neovim's options that affect the "gutter" area. Is your 'foldcolumn' option set?

Yeah, that was the issue! now it's working

image

Here's the trick if somebody has the same problem, uses treesiter

(Please correct me if it's bad, it's my first time touching this)

      -- config folding
      vim.opt.foldcolumn = "1"
      vim.opt.foldlevel = 99
      vim.opt.foldmethod = "expr"
      vim.opt.foldexpr = "v:lua.vim.treesitter.foldexpr()"

Yeah, that was the issue! now it's working

Glad to hear it, closing then.