Skip to content

Commit

Permalink
feat!: Added the ability to use the plugin in other filetypes
Browse files Browse the repository at this point in the history
- A few minor performance improvememts have been made.
- Code blocks now support the default conceals from markdown.
- Fixed a bug causing things inside code blocks(e.g. markdown code
blocks) to render

And various minor improvements!
  • Loading branch information
OXY2DEV committed Aug 26, 2024
1 parent 6507e5f commit e7e91ad
Show file tree
Hide file tree
Showing 6 changed files with 312 additions and 327 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ Markview.nvim comes with a ton of features such as,
- Fully customisable setup! You can customise everything to your needs!
- A `hybrid mode` that allows rendering in real-time! It will even unconceal nodes under the cursor.
- Dynamic `highlight groups` that allows support for almost any colorscheme!
- Supports other filetypes too(e.g. quarto/.qmd, r markdown/.rmd for now)! You can also add your own one.

And a lot more to come!

Expand Down
309 changes: 0 additions & 309 deletions ftplugin/markdown.lua

This file was deleted.

6 changes: 6 additions & 0 deletions lua/definitions.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@
--- List of custom highlight groups
---@field highlight_groups table[]?
---
--- List of filetypes where the plugin will be active
---@field filetypes string[]
---
--- List of buffer types to ignore
---@field buf_ignore string[]?
---
Expand Down Expand Up @@ -62,6 +65,9 @@
--- List of custom highlight groups
---@field highlight_groups table[]?
---
--- List of filetypes where the plugin will be active
---@field filetypes string[]
---
--- List of buffer types to ignore
---@field buf_ignore string[]?
---
Expand Down
1 change: 1 addition & 0 deletions lua/markview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@ markview.global_options = {};

---@type markview.config
markview.configuration = {
filetypes = { "markdown", "quarto", "rmd" },
callbacks = {
on_enable = function (_, window)
vim.wo[window].conceallevel = 2;
Expand Down
Loading

0 comments on commit e7e91ad

Please sign in to comment.