mirror of https://github.com/helix-editor/helix
deploy: f92a25a856
parent
3ea94a64ac
commit
93ff6bec64
|
@ -147,6 +147,14 @@
|
||||||
name = "rust"
|
name = "rust"
|
||||||
auto-format = false
|
auto-format = false
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
<h2 id="lsp-formatting-options"><a class="header" href="#lsp-formatting-options">LSP formatting options</a></h2>
|
||||||
|
<p>Use <code>format</code> field to pass extra formatting options to <a href="https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#document-formatting-request--leftwards_arrow_with_hook">Document Formatting Requests</a>.</p>
|
||||||
|
<pre><code class="language-toml">[[language]]
|
||||||
|
name = "typescript"
|
||||||
|
auto-format = true
|
||||||
|
# pass format options according to https://github.com/typescript-language-server/typescript-language-server#workspacedidchangeconfiguration omitting the "[language].format." prefix.
|
||||||
|
config = { format = { "semicolons" = "insert", "insertSpaceBeforeFunctionParenthesis" = true } }
|
||||||
|
</code></pre>
|
||||||
<h2 id="tree-sitter-grammars"><a class="header" href="#tree-sitter-grammars">Tree-sitter grammars</a></h2>
|
<h2 id="tree-sitter-grammars"><a class="header" href="#tree-sitter-grammars">Tree-sitter grammars</a></h2>
|
||||||
<p>Tree-sitter grammars can also be configured in <code>languages.toml</code>:</p>
|
<p>Tree-sitter grammars can also be configured in <code>languages.toml</code>:</p>
|
||||||
<pre><code class="language-toml"># in <config_dir>/helix/languages.toml
|
<pre><code class="language-toml"># in <config_dir>/helix/languages.toml
|
||||||
|
|
|
@ -1336,6 +1336,14 @@ j = { k = "normal_mode" } # Maps `jk` to exit insert mode
|
||||||
name = "rust"
|
name = "rust"
|
||||||
auto-format = false
|
auto-format = false
|
||||||
</code></pre>
|
</code></pre>
|
||||||
|
<h2 id="lsp-formatting-options"><a class="header" href="#lsp-formatting-options">LSP formatting options</a></h2>
|
||||||
|
<p>Use <code>format</code> field to pass extra formatting options to <a href="https://github.com/microsoft/language-server-protocol/blob/gh-pages/_specifications/specification-3-16.md#document-formatting-request--leftwards_arrow_with_hook">Document Formatting Requests</a>.</p>
|
||||||
|
<pre><code class="language-toml">[[language]]
|
||||||
|
name = "typescript"
|
||||||
|
auto-format = true
|
||||||
|
# pass format options according to https://github.com/typescript-language-server/typescript-language-server#workspacedidchangeconfiguration omitting the "[language].format." prefix.
|
||||||
|
config = { format = { "semicolons" = "insert", "insertSpaceBeforeFunctionParenthesis" = true } }
|
||||||
|
</code></pre>
|
||||||
<h2 id="tree-sitter-grammars"><a class="header" href="#tree-sitter-grammars">Tree-sitter grammars</a></h2>
|
<h2 id="tree-sitter-grammars"><a class="header" href="#tree-sitter-grammars">Tree-sitter grammars</a></h2>
|
||||||
<p>Tree-sitter grammars can also be configured in <code>languages.toml</code>:</p>
|
<p>Tree-sitter grammars can also be configured in <code>languages.toml</code>:</p>
|
||||||
<pre><code class="language-toml"># in <config_dir>/helix/languages.toml
|
<pre><code class="language-toml"># in <config_dir>/helix/languages.toml
|
||||||
|
|
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