mirror of https://github.com/helix-editor/helix
deploy: c56cd6ee8b
parent
65390b5b67
commit
9b6f5785fd
|
@ -216,6 +216,7 @@ you will need to add queries.</li>
|
|||
<li>Refer to the
|
||||
<a href="https://tree-sitter.github.io/tree-sitter/syntax-highlighting#queries">tree-sitter website</a>
|
||||
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>
|
||||
<blockquote>
|
||||
<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>
|
||||
<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/<name>.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>
|
||||
|
||||
</main>
|
||||
|
|
|
@ -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
|
||||
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>
|
||||
<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>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>
|
||||
|
|
|
@ -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
|
||||
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>
|
||||
<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>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>
|
||||
|
@ -2317,6 +2318,7 @@ you will need to add queries.</li>
|
|||
<li>Refer to the
|
||||
<a href="https://tree-sitter.github.io/tree-sitter/syntax-highlighting#queries">tree-sitter website</a>
|
||||
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>
|
||||
<blockquote>
|
||||
<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>
|
||||
<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/<name>.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>
|
||||
<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.
|
||||
|
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue