forked from MeanderingProgrammer/render-markdown.nvim
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: Allow signs to be disabled per component
## Details Request: MeanderingProgrammer#64 Currently the controls that exist around sign column rendering are at a buffer level. Meaning either all signs are rendered for a particular buffer or none of them are. There are 2 components that can render into the sign column, headings & code blocks. Add a 'sign' field to both of these which can be toggled on / off. If the 'sign' field is set to false then do not attempt to render any signs for that component. These component level settings are checked first, before any of the buffer level ones, meaning they have the highest presedence. Other minor changes made: - Split heading icon & background to 2 different extmarks - Have each handler set 'render.md.Handler' as a parent class, this fixes the diagnostic error so no longer needs to be disabled - Make logger a class, missed this when adding everywhere else - Add more methods to logger - Have all other methods call into logger.error / logger.debug to avoid checking same condition in multiple places - Add UserWindowOption type to avoid type errors when only default or rendered is set, align with health check and use number or string instead of any
- Loading branch information
1 parent
3578523
commit 9b771cc
Showing
13 changed files
with
108 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.