diff options
author | Lewis Russell <lewis6991@gmail.com> | 2024-03-08 12:25:18 +0000 |
---|---|---|
committer | Lewis Russell <me@lewisr.dev> | 2024-03-09 11:21:55 +0000 |
commit | ade1b12f49c3b3914c74847d791eb90ea90b56b7 (patch) | |
tree | b76b5f4cbb3398c7c7081e33db0b8fba99600f6e /runtime/lua/vim/treesitter | |
parent | 0e284939143ae5bd55f78ece388346811af842ea (diff) | |
download | rneovim-ade1b12f49c3b3914c74847d791eb90ea90b56b7.tar.gz rneovim-ade1b12f49c3b3914c74847d791eb90ea90b56b7.tar.bz2 rneovim-ade1b12f49c3b3914c74847d791eb90ea90b56b7.zip |
docs: support inline markdown
- Tags are now created with `[tag]()`
- References are now created with `[tag]`
- Code spans are no longer wrapped
Diffstat (limited to 'runtime/lua/vim/treesitter')
-rw-r--r-- | runtime/lua/vim/treesitter/languagetree.lua | 6 | ||||
-rw-r--r-- | runtime/lua/vim/treesitter/query.lua | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/runtime/lua/vim/treesitter/languagetree.lua b/runtime/lua/vim/treesitter/languagetree.lua index 640477eed4..62714d3f1b 100644 --- a/runtime/lua/vim/treesitter/languagetree.lua +++ b/runtime/lua/vim/treesitter/languagetree.lua @@ -1,4 +1,4 @@ ---- @brief A \*LanguageTree\* contains a tree of parsers: the root treesitter parser for {lang} and +--- @brief A [LanguageTree]() contains a tree of parsers: the root treesitter parser for {lang} and --- any "injected" language parsers, which themselves may inject other languages, recursively. --- For example a Lua buffer containing some Vimscript commands needs multiple parsers to fully --- understand its contents. @@ -93,8 +93,8 @@ local LanguageTree = {} ---Optional arguments: ---@class vim.treesitter.LanguageTree.new.Opts ---@inlinedoc ----@field queries table<string,string> -- Deprecated ----@field injections table<string,string> +---@field queries? table<string,string> -- Deprecated +---@field injections? table<string,string> LanguageTree.__index = LanguageTree diff --git a/runtime/lua/vim/treesitter/query.lua b/runtime/lua/vim/treesitter/query.lua index 85e477be58..a086f5e876 100644 --- a/runtime/lua/vim/treesitter/query.lua +++ b/runtime/lua/vim/treesitter/query.lua @@ -995,7 +995,7 @@ end --- Opens a live editor to query the buffer you started from. --- ---- Can also be shown with *:EditQuery*. +--- Can also be shown with [:EditQuery](). --- --- If you move the cursor to a capture name ("@foo"), text matching the capture is highlighted in --- the source buffer. The query editor is a scratch buffer, use `:write` to save it. You can find |