File tree Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Expand file tree Collapse file tree 2 files changed +4
-6
lines changed Original file line number Diff line number Diff line change @@ -12,9 +12,9 @@ Plugin to improve viewing Markdown files in Neovim
12
12
13
13
# Dependencies
14
14
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
18
18
19
19
# Install
20
20
Original file line number Diff line number Diff line change @@ -89,11 +89,9 @@ M.refresh = function()
89
89
return
90
90
end
91
91
92
- local parser = vim .treesitter .get_parser (0 , ' markdown' )
93
- local root = parser :parse ()[1 ]:root ()
94
-
95
92
local highlights = state .config .highlights
96
93
94
+ local root = vim .treesitter .get_parser (0 , ' markdown' ):parse ()[1 ]:root ()
97
95
--- @diagnostic disable-next-line : missing-parameter
98
96
for id , node in state .config .query :iter_captures (root , 0 ) do
99
97
local capture = state .config .query .captures [id ]
You can’t perform that action at this time.
0 commit comments