You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Details
Adds 3 additional commands to API:
- get: returns whether plugin is enabled or not as a boolean
- set: changes whether the plugin is enabled or not, takes a boolean as
input which is used directly, if not provided value is toggled
- set_buf: same as set but only runs for the current buffer
Most of the existing APIs now simply call these under the hood:
- enable -> set(true)
- disable -> set(false)
- toggle -> set()
- buf_enable -> set_buf(true)
- buf_disable -> set_buf(false)
- buf_toggle -> set_buf()
Main idea behind this change is to move LazyVim from relying on the
`state` module, I'll expose the needed information (get & set) through
the public API which will let me refactor as needed.
This does make our command line argument parsing substantially more
complicated. Previously no additional arguments were passed in to the
command being run. Now 2 commands can accept a boolean as input. Sounds
simple but required a good amount of reworking, oh well.
Copy file name to clipboardExpand all lines: CHANGELOG.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -11,6 +11,7 @@
11
11
- better support for reloading with lazy.nvim [24aacee](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/24aacee83544ca113055564ed22be7852067c342)
12
12
- change concealcursor value to nvic when user disables anti conceal [#463](https://github.com/MeanderingProgrammer/render-markdown.nvim/issues/463)
- support quarto executable code block syntax [c301209](https://github.com/MeanderingProgrammer/render-markdown.nvim/commit/c3012098bd44381e3b96bbbbbcc21a54d45a286c)
0 commit comments