aboutsummaryrefslogtreecommitdiff
path: root/book
Commit message (Collapse)AuthorAge
...
* add workflow for pushing nix flake artifacts to Cachix (#1721)Michael Davis2022-03-02
| | | | | | | | | * add workflow for pushing nix flake artifacts to Cachix * add docs on using the cachix cache from nix * remove submodule clone from cachix workflow * remove flake check
* Add terraform lsp support (#1726)Michael Daffin2022-03-01
| | | Using terraform-ls and enables auto-formate support. Also adds tfvars as an extra filetype.
* Implement bulk buffer closing commands (#1677)Daniel S Poulin2022-03-01
| | | | | | | | | | | | | | | | | | | | * Implement buffer-close-all * Implement buffer-close-others * Refactor all buffer close variants to use shared logic * Fix clippy lint * Docgen for new commands * Shorten error message for attempting to close buffers that don't exist * Refactor shared buffer methods to pass only editor, not whole compositor * Switch signature of bulk buffer closing to use slice of DocumentIds Addresses feedback that accepting an IntoIterator implementor is too much for an internal. Also possibly saves some moving?
* Bring configuration documentation up to date (missing editor.search section) ↵Philipp Mildenberger2022-03-01
| | | | (#1719)
* Add support for HCL language (#1705)Michael Daffin2022-02-25
| | | Queries based on the neovims ones: https://github.com/nvim-treesitter/nvim-treesitter/tree/master/queries/hcl and modified for helix support.
* Configurable auto pairs (#1624)Skyler Hawthorne2022-02-25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * impl auto pairs config Implements configuration for which pairs of tokens get auto completed. In order to help with this, the logic for when *not* to auto complete has been generalized from a specific hardcoded list of characters to simply testing if the next/prev char is alphanumeric. It is possible to configure a global list of pairs as well as at the language level. The language config will take precedence over the global config. * rename AutoPair -> Pair * clean up insert_char command * remove Rc * remove some explicit cloning with another impl * fix lint * review comments * global auto-pairs = false takes precedence over language settings * make clippy happy * print out editor config on startup * move auto pairs accessor into Document * rearrange auto pair doc comment * use pattern in Froms
* Add kotlin language (#1689)Michael Daffin2022-02-23
| | | | | | | | | | | | | | | | | | | | | * Add kotlin language Queries taken from https://github.com/nvim-treesitter/nvim-treesitter/blob/master/queries/kotlin seem to work well enough for my needs though I don't use kotlin heavily. * Update lang-support doc * Updates the kotlin highlight query to use helixs scopes * Updates the queries from PR feedback * Adds 'shallow = true' to gitmodules * Removes kotlin locals.scm * Remove blank line Co-authored-by: Ivan Tham <pickfire@riseup.net> Co-authored-by: Ivan Tham <pickfire@riseup.net>
* Allow separate styles for markup headings (#1618)Alex2022-02-21
| | | | | * update markdown highlighting to use separate heading themes * remove markdown theme scopes in ui
* Add object.movement for tree-sitter navigationGokul Soumya2022-02-15
|
* Add docs for tree-sitter based navigationGokul Soumya2022-02-15
|
* Add `PageUp`, `PageDown`, `Ctrl-u`, `Ctrl-d`, `Home`, `End` keyboard ↵Ludwig Stecher2022-02-15
| | | | | | | | | | | | | | | shortcuts to file picker (#1612) * Add `PageUp`, `PageDown`, `Ctrl-u`, `Ctrl-d`, `Home`, `End` keyboard shortcuts to file picker * Refactor file picker paging logic * change key mapping * Add overlay component * Use closure instead of margin to calculate size * Don't wrap file picker in `Overlay` automatically
* add tree-sitter-erlang (#1657)Michael Davis2022-02-15
|
* Add new dap commands to docs (#1660)Gokul Soumya2022-02-14
|
* Added docs for `ensure_selections_forward` (#1651)Maximilian Schoenenberg2022-02-11
|
* Update keybind docs for treesitter, view mode (#1628)Gokul Soumya2022-02-08
|
* feat(languages): rescript (#1616)Jared Ramirez2022-02-06
| | | | | | | | | | | * Add rescript language support * cargo xtask docgen * Add textobjects & file line ending * Fix text objects & rerun docgen * Fix textobjects queries
* epocsquadron/add tree sitter twig (#1602)Daniel S Poulin2022-02-01
| | | | | | | | * Add tree-sitter-twig grammer and highlights The gammar itself is quite basic, but is much better than nothing for working with real files consisting mostly of html. * Docgen for newly added grammar
* Add textobjects queries for php (#1601)Daniel S Poulin2022-01-30
| | | | | | | * Add textobjects queries for php * Missing EOL fix * Update generated docs after adding textobjects to php
* feat(helix-view): dynamic line numbers (#1522)Andrew Neth2022-01-25
| | | | | | | * feat(helix-view): dynamic line numbers * docs: describe editor.line-number in more detail * Make dynamic numbers the default behavior of `relative`
* add tree-sitter-iex (#1576)Michael Davis2022-01-25
| | | | | | | * add tree-sitter-iex * run docgen task * fix url for iex submodule
* 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`