pull/11885/head
pascalkuthe 2023-12-16 04:29:40 +00:00
parent 65390b5b67
commit 9b6f5785fd
5 changed files with 8 additions and 2 deletions

View File

@ -216,6 +216,7 @@ you will need to add queries.</li>
<li>Refer to the <li>Refer to the
<a href="https://tree-sitter.github.io/tree-sitter/syntax-highlighting#queries">tree-sitter website</a> <a href="https://tree-sitter.github.io/tree-sitter/syntax-highlighting#queries">tree-sitter website</a>
for more information on writing queries.</li> for more information on writing queries.</li>
<li>A list of highlight captures can be found <a href="https://docs.helix-editor.com/themes.html#scopes">on the themes page</a>.</li>
</ol> </ol>
<blockquote> <blockquote>
<p>💡 In Helix, the first matching query takes precedence when evaluating <p>💡 In Helix, the first matching query takes precedence when evaluating
@ -232,6 +233,7 @@ to fetch the grammars and <code>hx --grammar build</code> to build any out-of-da
grammars.</li> grammars.</li>
<li>If a parser is causing a segfault, or you want to remove it, make sure to <li>If a parser is causing a segfault, or you want to remove it, make sure to
remove the compiled parser located at <code>runtime/grammars/&lt;name&gt;.so</code>.</li> remove the compiled parser located at <code>runtime/grammars/&lt;name&gt;.so</code>.</li>
<li>If you are attempting to add queries and Helix is unable to locate them, ensure that the environment variable <code>HELIX_RUNTIME</code> is set to the location of the <code>runtime</code> folder you're developing in.</li>
</ul> </ul>
</main> </main>

View File

@ -187,6 +187,7 @@ appropriate Language Server.</p>
<p>Also see the <a href="./languages.html">Language Configuration</a> docs and the <a href="./guides/adding_languages.html">Adding <p>Also see the <a href="./languages.html">Language Configuration</a> docs and the <a href="./guides/adding_languages.html">Adding
Languages</a> guide for more language configuration information.</p> Languages</a> guide for more language configuration information.</p>
<div class="table-wrapper"><table><thead><tr><th>Language</th><th>Syntax Highlighting</th><th>Treesitter Textobjects</th><th>Auto Indent</th><th>Default LSP</th></tr></thead><tbody> <div class="table-wrapper"><table><thead><tr><th>Language</th><th>Syntax Highlighting</th><th>Treesitter Textobjects</th><th>Auto Indent</th><th>Default LSP</th></tr></thead><tbody>
<tr><td>agda</td><td></td><td></td><td></td><td></td></tr>
<tr><td>astro</td><td></td><td></td><td></td><td></td></tr> <tr><td>astro</td><td></td><td></td><td></td><td></td></tr>
<tr><td>awk</td><td></td><td></td><td></td><td><code>awk-language-server</code></td></tr> <tr><td>awk</td><td></td><td></td><td></td><td><code>awk-language-server</code></td></tr>
<tr><td>bash</td><td></td><td></td><td></td><td><code>bash-language-server</code></td></tr> <tr><td>bash</td><td></td><td></td><td></td><td><code>bash-language-server</code></td></tr>

View File

@ -1130,6 +1130,7 @@ appropriate Language Server.</p>
<p>Also see the <a href="./languages.html">Language Configuration</a> docs and the <a href="./guides/adding_languages.html">Adding <p>Also see the <a href="./languages.html">Language Configuration</a> docs and the <a href="./guides/adding_languages.html">Adding
Languages</a> guide for more language configuration information.</p> Languages</a> guide for more language configuration information.</p>
<div class="table-wrapper"><table><thead><tr><th>Language</th><th>Syntax Highlighting</th><th>Treesitter Textobjects</th><th>Auto Indent</th><th>Default LSP</th></tr></thead><tbody> <div class="table-wrapper"><table><thead><tr><th>Language</th><th>Syntax Highlighting</th><th>Treesitter Textobjects</th><th>Auto Indent</th><th>Default LSP</th></tr></thead><tbody>
<tr><td>agda</td><td></td><td></td><td></td><td></td></tr>
<tr><td>astro</td><td></td><td></td><td></td><td></td></tr> <tr><td>astro</td><td></td><td></td><td></td><td></td></tr>
<tr><td>awk</td><td></td><td></td><td></td><td><code>awk-language-server</code></td></tr> <tr><td>awk</td><td></td><td></td><td></td><td><code>awk-language-server</code></td></tr>
<tr><td>bash</td><td></td><td></td><td></td><td><code>bash-language-server</code></td></tr> <tr><td>bash</td><td></td><td></td><td></td><td><code>bash-language-server</code></td></tr>
@ -2317,6 +2318,7 @@ you will need to add queries.</li>
<li>Refer to the <li>Refer to the
<a href="https://tree-sitter.github.io/tree-sitter/syntax-highlighting#queries">tree-sitter website</a> <a href="https://tree-sitter.github.io/tree-sitter/syntax-highlighting#queries">tree-sitter website</a>
for more information on writing queries.</li> for more information on writing queries.</li>
<li>A list of highlight captures can be found <a href="https://docs.helix-editor.com/themes.html#scopes">on the themes page</a>.</li>
</ol> </ol>
<blockquote> <blockquote>
<p>💡 In Helix, the first matching query takes precedence when evaluating <p>💡 In Helix, the first matching query takes precedence when evaluating
@ -2333,6 +2335,7 @@ to fetch the grammars and <code>hx --grammar build</code> to build any out-of-da
grammars.</li> grammars.</li>
<li>If a parser is causing a segfault, or you want to remove it, make sure to <li>If a parser is causing a segfault, or you want to remove it, make sure to
remove the compiled parser located at <code>runtime/grammars/&lt;name&gt;.so</code>.</li> remove the compiled parser located at <code>runtime/grammars/&lt;name&gt;.so</code>.</li>
<li>If you are attempting to add queries and Helix is unable to locate them, ensure that the environment variable <code>HELIX_RUNTIME</code> is set to the location of the <code>runtime</code> folder you're developing in.</li>
</ul> </ul>
<div style="break-before: page; page-break-before: always;"></div><h1 id="adding-textobject-queries"><a class="header" href="#adding-textobject-queries">Adding textobject queries</a></h1> <div style="break-before: page; page-break-before: always;"></div><h1 id="adding-textobject-queries"><a class="header" href="#adding-textobject-queries">Adding textobject queries</a></h1>
<p>Helix supports textobjects that are language specific, such as functions, classes, etc. <p>Helix supports textobjects that are language specific, such as functions, classes, etc.

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long