Skip to content

Commit 3217792

Browse files
committed
feat(foldtext): allow function() for virtual text components
1 parent 6f991c4 commit 3217792

File tree

1 file changed

+0
-14
lines changed

1 file changed

+0
-14
lines changed

README.md

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -139,20 +139,6 @@ require("origami").inspectLspFolds("special") -- comment & import only
139139
require("origami").inspectLspFolds("all")
140140
```
141141

142-
### Using functions to display virtual text components conditionally
143-
144-
```lua
145-
require("origami").setup {
146-
foldtext = {
147-
diagnosticsCount = function()
148-
if vim.b.origami_enable_diagnostics_count then
149-
return true
150-
end
151-
end,
152-
},
153-
}
154-
```
155-
156142
## Credits
157143
- [u/marjrohn](https://www.reddit.com/r/neovim/comments/1le6l6x/add_decoration_to_the_folded_lines/)
158144
for the decorator approach to styling foldtext.

0 commit comments

Comments
 (0)