aboutsummaryrefslogtreecommitdiff
path: root/book
Commit message (Collapse)AuthorAge
* Use markup scopes for the Markdown component (#1363)CossonLeo2022-01-24
|
* Merge pull request #1154 from sudormrfbin/cursor-shape-newBlaž Hrastnik2022-01-23
|\ | | | | Change cursor shape on mode change
| * Merge branch 'master' into cursor-shape-newGokul Soumya2022-01-09
| |\
| * \ Merge branch 'master' into cursor-shape-newGokul Soumya2022-01-06
| |\ \
| * | | Manually draw all block cursorsGokul Soumya2021-12-23
| | | |
| * | | Merge branch 'master' into cursor-shape-newGokul Soumya2021-12-18
| |\ \ \
| * | | | Remove ui.cursor.primary and hashmap lookupsGokul Soumya2021-12-18
| | | | |
| * | | | Change default cursors to block for all modesGokul Soumya2021-11-29
| | | | |
| * | | | Change cursor shape on mode changeGokul Soumya2021-11-24
| | | | | | | | | | | | | | | | | | | | | | | | | Fixes #323. Due to terminal limitations we can only change the shape of the primary cursor.
* | | | | Add haskell-language-server-wrapper --lsp to default `languages.toml` (#1556)Kyra2022-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | After the changes to upgrade and reenable tree-sitter-haskell #1417 for the purpose of enabling Haskell syntax highlighting #1384, we might as well take the final step.
* | | | | docs: Fix typo in book (#1537)Daniel Flanagan2022-01-22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * docs: Fix typo in book * Update book/src/usage.md Co-authored-by: Eric Crosson <EricCrosson@users.noreply.github.com> Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> Co-authored-by: Eric Crosson <EricCrosson@users.noreply.github.com>
* | | | | feat(languages): GraphQL (#1515)Jared Ramirez2022-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Graphql language support * Fix docs gen * Add JS Graphql injection query * Updates based on PR feedback Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* | | | | change show_subtree command into ':tree-sitter-subtree' typable command (#1524)Michael Davis2022-01-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add default keymap for show_subtree command * remove space+t keymap * add a typable command ':show-subtree' * generate documentation for ':show-subtree' * remove non-typable show_subtree command * ':show-subtree'->':tree-sitter-subtree'
* | | | | add select_next_sibling and select_prev_sibling commands (#1495)Michael Davis2022-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add select_next_sibling and select_prev_sibling commands * refactor objects to use higher order functions * address clippy feedback * move selection cloning into commands * add default keybindings under left/right brackets * use [+t,]+t for selecting sibling syntax nodes * setup Alt-{j,k,h,l} default keymaps for syntax selection commands * reduce boilerplate of select_next/prev_sibling in commands * import tree-sitter Node type in commands
* | | | | feat(languages): Elm (#1514)Jared Ramirez2022-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Elm language support * Fix docs gen * Updates based on PR feedback
* | | | | feat(languages): Lean experimental tree-sitter-lean (#1422)Anders Christiansen Sørby2022-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add experimental tree-sitter-lean * Run docgen * Copy over the queries from lean.nvim * Update .gitmodules Co-authored-by: Ivan Tham <pickfire@riseup.net> * Update lean highlights and run docgen * Update runtime/queries/lean/injections.scm Co-authored-by: Michael Davis <michael.davis@nfiindustries.com> * Lean: Move variable matcher to bottom * Update runtime/queries/lean/locals.scm Co-authored-by: Michael Davis <michael.davis@nfiindustries.com> Co-authored-by: Ivan Tham <pickfire@riseup.net> Co-authored-by: Michael Davis <michael.davis@nfiindustries.com>
* | | | | Re-enable haskell in languages.toml (#1520)Kirawi2022-01-16
| | | | |
* | | | | Minor(book): Add `G` in normal mode (#1482)NexiNov2022-01-12
| | | | |
* | | | | add tree-sitter-git-config (#1426)Michael Davis2022-01-09
| |_|_|/ |/| | | | | | | | | | | | | | | * add tree-sitter-git-config * add todo comment for improving filetype check
* | | | docs: editor.filepicker -> editor.file-picker (#1465)Cottser2022-01-09
| | | |
* | | | docs: document @keyword.control.exception scopeEric Crosson2022-01-08
| | | | | | | | | | | | | | | | As identified in [this GitHub comment](https://github.com/helix-editor/helix/pull/1433#discussion_r777786140)
* | | | feat: add tree-sitter-makeEric Crosson2022-01-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit adds syntax highlighting for GNU Make[^1] makefiles via tree-sitter-make[^2]. [^1]: https://www.gnu.org/software/make/ [^2]: https://github.com/alemuller/tree-sitter-make
* | | | capture markdown link text as markup.link.text (#1456)Michael Davis2022-01-08
| | | |
* | | | Add default language server for JavaScript (#1457)Kevin Sjöberg2022-01-08
| | | | | | | | | | | | | | | | | | | | * Add default language server for JavaScript * Update lang support documentation
* | | | Rework beginning of themes chapterCJ van den Berg2022-01-07
| | | | | | | | | | | | | | | | The specifics of configuring themes has caused some confusion. Hopefully this will clarify things a little.
* | | | add tree-sitter-regex (#1362)Michael Davis2022-01-06
| |_|/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add tree-sitter-regex * adapt regex highlights from upstream * inject regex into elixir sigil_r/2 and sigil_R/2 * generate lang-support docs * capture interesting nodes in character-ranges * make $.character_class captures more consistent * fix fallthrough behavior for character classes * capture pattern characters as 'string' * use latest tree-sitter-regex * set elixir regex injections as combined * add link to upstream queries * inject regex in rust into 'Regex::new' raw string literals
* | | feat(commands): shrink_selection (#1340)Matouš Dzivjak2022-01-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(commands): shrink_selection Add `shrink_selection` command that can be used to shrink previously expanded selection. To make `shrink_selection` work it was necessary to add selection history to the Document since we want to shrink the selection towards the syntax tree node that was initially selected. Selection history is cleared any time the user changes selection other way than by `expand_selection`. This ensures that we don't get some funky edge cases when user calls `shrink_selection`. Related: https://github.com/helix-editor/helix/discussions/1328 * Refactor shrink_selection, move history to view * Remove useless comment * Add default key mapping for extend&shrink selection * Rework contains_selection method * Shrink selection without expand selects first child
* | | Add textobjects and indents to c and cpp (#1293)Sebastian Neubauer2022-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Indentation of single line statements doesn't work, i.e. for (;;)<hit enter> leads to for(;;) <cursor here> Only blocks with curly braces are indented.
* | | Add llvm-mir highlighting (#1398)Sebastian Neubauer2022-01-04
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add injection regex for more languages To support embedding them in other languages like markdown. * Add llvm-mir highlighting LLVM Machine IR is dumped as yaml files that can embed LLVM IR and Machine IR. To support this, add a llvm-mir-yaml language that uses the yaml parser, but uses different injections to highlight IR and MIR. * Update submodule with fixed multiline comments Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* | | Add `:cquit!` command and prevent `:cquit` from ignoring unsaved changes (#1414)Omnikar2022-01-03
| | | | | | | | | | | | | | | * Add `:cquit!` command and prevent `:cquit` from ignoring unsaved changes * `cargo xtask docgen`
* | | Add LLVM TableGen highlighting (#1409)Sebastian Neubauer2022-01-03
| | | | | | | | | | | | | | | | | | | | | Add a tree-sitter grammar and highlights for TableGen files. TableGen and its grammar are described here: https://llvm.org/docs/TableGen/index.html Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* | | add tree-sitter-git-rebase (#1402)Michael Davis2021-12-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add submodule on tree-sitter-rebase, add to languages * add basic highlights query * inject bash in execute statements * update tree-sitter-rebase * tree-sitter-rebase->tree-sitter-git-rebase * get injection working with tree-sitter-git-commit * set scope under source.gitrebase * unset include-children on commit message injections * Revert "unset include-children on commit message injections" This reverts commit 2ecee155ea8e229651920b291062c2ee84b47944. * fix generated language docs * use rebase_command scopes from tree-sitter-git-commit
* | | Add tree-sitter-git-diff (#1373)Michael Davis2021-12-29
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add submodule on tree-sitter-git-diff * add git-diff highlights * inject git-diff into git-commit * update tree-sitter-git-commit with fix for bad diff case * add git-diff to language support docs * include-children in diff injections This ensures that children nodes of $.message are included in the injection, such as $.user or issue/pr numbers. Without this change, diffs containing '#' or '@' characters can trip up the injection and be parsed separately. See https://github.com/helix-editor/helix/pull/1373#issuecomment-1001215629 * set diff language's scope as source.diff
* | | Improve llvm highlighting and queries (#1388)Sebastian Neubauer2021-12-29
| | | | | | | | | | | | | | | | | | | | | | | | * Improve llvm highlighting and queries The llvm tree-sitter parser was updated to support scopes and more accurate highlighting. * Group highlight expressions better
* | | feat(commands): sort command (#1288)Matouš Dzivjak2021-12-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(commands): sort/rsort command Add basic implementation of sort command. * Sort by selections instead, implement reverse sort * Generate docs * Rename sort! to rsort
* | | Add ruby indents (#1372)Stuart Hinson2021-12-27
| | | | | | | | | | | | | | | * Add ruby indents * Include ruby in generated docs
* | | Mark macros as experimental in docsIvan Tham2021-12-27
| | | | | | | | | | | | | | | Given that currently macro does not integrate well with registers and the internal representation of macros is expected to be changed.
* | | Rename play macro to replay macroIvan Tham2021-12-27
| | | | | | | | | | | | | | | Macro needs to be defined first before playing so replay is more accurate. Also, replay have the same length as record which makes it looks nice.
* | | Switch macro Q and qIvan Tham2021-12-27
| | |
* | | Update settings at runtime (#798)Tamo2021-12-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: Update settings at runtime fix the clippy warning * update the documentation * use to_value instead of to_vec+from_value * drop the equal * remove an useless comment * apply suggestion
* | | tree-sitter-gitcommit->tree-sitter-git-commitMichael Davis2021-12-25
| | |
* | | add new scopes to themes docsMichael Davis2021-12-25
| | |
* | | add gitcommit grammar and language configurationMichael Davis2021-12-25
| | |
* | | Add textobjects and indents to cmake (#1307)Sebastian Neubauer2021-12-25
| | |
* | | feat(lsp): configurable diagnostic severity (#1325)Matouš Dzivjak2021-12-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(lsp): configurable diagnostic severity Allow severity of diagnostic messages to be configured. E.g. allow turning of Hint level diagnostics. Fixes: https://github.com/helix-editor/helix/issues/1007 * Use language_config() method * Add documentation for diagnostic_severity * Use unreachable for unknown severity level * fix: documentation for diagnostic_severity config
* | | Support dockerfiles (#1303)Midnight Exigent2021-12-21
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * allow language.config (in languages.toml) to be passed in as a toml object * Change config field for languages from json string to toml object * remove indents on languages.toml config * fix: remove patch version from serde_json import in helix-core * Use same tree-sitter-zig as upstream/master * fix(completion_popup): Fixes #1256 * Update helix-term/src/ui/completion.rs * feat(languages): Add support for `Dockerfile`s * docs(cargo-xtask-docgen): * improvement(langs-dockerfile): Add `injection-regex` to `languages.toml` for `Dockerfile` * improvement(langs-dockerfile): Add injections.scm * Update .gitmodules Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* | | docs: Add note about tree-sitter query precedence (#1314)Gokul Soumya2021-12-21
| | |
* | | Add fish highlighting (#1308)Sebastian Neubauer2021-12-21
| | | | | | | | | | | | The highlights were copied and modified from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/fish/highlights.scm
* | | Add tree-sitter-comment (#1300)Michael Davis2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add tree-sitter-comment Fix #1164 * fix precedence in tree-sitter-comment highlights connects https://github.com/helix-editor/helix/pull/1170 * set injection-regex for comment language * remove comment filetype * fix comment injections for neovim-style injections tags * add comment injections for elixir * remove f.comment * fix spacing in .gitmodules * run 'cargo xtask docgen' Co-authored-by: Ivan Tham <pickfire@riseup.net>
* | | Add link and quote queries for markdownGokul Soumya2021-12-19
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Rename markup.underline.link to markup.link.url - Add markup.link.label - Add markup.quote (The constructor theme scope was missing from the docs, so unrelated to this commit).