Skip to content

Commit 180e23e

Browse files
Minor edits
1 parent 366da77 commit 180e23e

File tree

2 files changed

+4
-6
lines changed

2 files changed

+4
-6
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ Plugin to improve viewing Markdown files in Neovim
1212

1313
# Dependencies
1414

15-
- [markdown](https://github.com/tree-sitter-grammars/tree-sitter-markdown/tree/split_parser)
16-
parser for [treesitter](https://github.com/nvim-treesitter/nvim-treesitter/tree/master):
17-
Used to parse `markdown` files
15+
- [markdown](https://github.com/tree-sitter-grammars/tree-sitter-markdown) parser for
16+
[treesitter](https://github.com/nvim-treesitter/nvim-treesitter): Used to parse
17+
`markdown` files
1818

1919
# Install
2020

lua/markdown/init.lua

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -89,11 +89,9 @@ M.refresh = function()
8989
return
9090
end
9191

92-
local parser = vim.treesitter.get_parser(0, 'markdown')
93-
local root = parser:parse()[1]:root()
94-
9592
local highlights = state.config.highlights
9693

94+
local root = vim.treesitter.get_parser(0, 'markdown'):parse()[1]:root()
9795
---@diagnostic disable-next-line: missing-parameter
9896
for id, node in state.config.query:iter_captures(root, 0) do
9997
local capture = state.config.query.captures[id]

0 commit comments

Comments
 (0)