@@ -1,97 +1,10 @@
1# Configuration
1# Configuration
3+To override global configuration parameters create a `config.toml` file located in your config directory (i.e `~/.config/helix/config.toml`).
5To disable language server progress report from being displayed in the status bar add this option to your `config.toml`:
7To disable language server progress report from being displayed in the status bar add this option to your `config.toml`:
7lsp-progress = false
9lsp-progress = false
12−Use a custom theme by placing a theme.toml in your config directory (i.e ~/.config/helix/theme.toml). The default theme.toml can be found [here](https://github.com/helix-editor/helix/blob/master/theme.toml), and user submitted themes [here](https://github.com/helix-editor/helix/blob/master/contrib/themes).
14−Styles in theme.toml are specified of in the form:
17−key = { fg = "#ffffff", bg = "#000000", modifiers = ["bold", "italic"] }
20−where `name` represents what you want to style, `fg` specifies the foreground color, `bg` the background color, and `modifiers` is a list of style modifiers. `bg` and `modifiers` can be omitted to defer to the defaults.
22−To specify only the foreground color:
28−if the key contains a dot `'.'`, it must be quoted to prevent it being parsed as a [dotted key](https://toml.io/en/v1.0.0#keys).
54−| `keyword.directive` | Preprocessor directives (\#if in C) |
57−| `punctuation.delimiter` | |
62−| `variable.parameter` | |
67−| `function.macro` | |
68−| `function.builtin` | |
70−| `variable.builtin` | |
72−| `constant.builtin` | |
75−| `escape` | Escaped characters |
76−| `label` | For lifetimes |
80−| `ui.linenr.selected` | For lines with cursors |
87−| `ui.menu.selected` | |
88−| `ui.selection` | For selections in the editing area |
89−| `warning` | LSP warning |
90−| `error` | LSP error |
94−These keys match [tree-sitter scopes](https://tree-sitter.github.io/tree-sitter/syntax-highlighting#theme). We half-follow the common scopes from [macromates language grammars](https://macromates.com/manual/en/language_grammars) with some differences.
96−For a given highlight produced, styling will be determined based on the longest matching theme key. So it's enough to provide function to highlight `function.macro` and `function.builtin` as well, but you can use more specific scopes to highlight specific cases differently.