aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* Fix Clippy lints in tests (#1563)Omnikar2022-01-23
| | | Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* 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
| | | | |
| * | | | Use serde attribute to rename to lowercaseGokul Soumya2021-11-25
| | | | |
| * | | | 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.
* | | | | cargo fmt + clippy lintBlaž Hrastnik2022-01-23
| | | | |
* | | | | Remove some TODOsBlaž Hrastnik2022-01-23
| | | | |
* | | | | Update dependencies (includes tree-sitter 0.20.3)Blaž Hrastnik2022-01-23
| | | | |
* | | | | Don't calculate symbol width twiceBlaž Hrastnik2022-01-23
| | | | | | | | | | | | | | | | | | | | This is potentially costly so we should avoid calling width()
* | | | | cleanupBlaž Hrastnik2022-01-23
| | | | |
* | | | | fix: ensure_grapheme_boundary_next_byte needs to index at valid charBlaž Hrastnik2022-01-23
| | | | |
* | | | | Slicing micro-optimizationBlaž Hrastnik2022-01-23
| | | | |
* | | | | Set flags necessary for cargo-flamegraphBlaž Hrastnik2022-01-23
| | | | |
* | | | | Speed up ensure_next_boundary during renderBlaž Hrastnik2022-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This code: let start = ensure_grapheme_boundary_next(text, text.byte_to_char(start)); let end = ensure_grapheme_boundary_next(text, text.byte_to_char(end)); Would convert byte to char index, but then internally immediately convert back to byte index, operate on it, then convert it to char index. This change reduces the amount of time spent in ensure_grapheme_boundary from 29% to 2%.
* | | | | Make Layer::parse take &mut tree_sitter::ParserBlaž Hrastnik2022-01-23
| | | | |
* | | | | Use filter_map rather than flat_mapBlaž Hrastnik2022-01-23
| | | | |
* | | | | Set byte range on cursor againBlaž Hrastnik2022-01-23
| | | | |
* | | | | Only call scopes.load() onceBlaž Hrastnik2022-01-23
| | | | |
* | | | | Resolve some outdated commentsBlaž Hrastnik2022-01-23
| | | | |
* | | | | fix: Skip modifying the root layer range, it always covers 0..maxBlaž Hrastnik2022-01-23
| | | | |
* | | | | Update range markers so we can determine which layers can be reusedBlaž Hrastnik2022-01-23
| | | | |
* | | | | Try to reuse an existing layer based on layer.rangesBlaž Hrastnik2022-01-23
| | | | |
* | | | | Ignore layers without highlight captures, avoid cloning rangesBlaž Hrastnik2022-01-23
| | | | |
* | | | | Reuse the source slice between layersBlaž Hrastnik2022-01-23
| | | | |
* | | | | Store theme scopes on the loader, this way theme isn't passed aroundBlaž Hrastnik2022-01-23
| | | | |
* | | | | syntax: Split parsing and highlightingBlaž Hrastnik2022-01-23
| | | | |
* | | | | Add markup support (#1525)NNB2022-01-23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add markup support for all Base16 themes * Fix rose_pine `markup.link.text` attribute misname * Add basic default markup support for all themes * Fix cursor change color on Base16 terminal and default * Remove old markup monokai_pro support and fix Onedark `markup.link.text` attribute misname * Remove old markup dracula support
* | | | | 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>
* | | | | Add `tag` to gruvbox theme (#1555)Rohan Jain2022-01-22
| | | | | | | | | | | | | | | Missed in the commit 943fca332e.
* | | | | dracula theme: add markup support (#1554)Sebastian Zivota2022-01-22
| | | | |
* | | | | 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 markup support for monokai pro themes (#1553)WindSoilder2022-01-21
| | | | |
* | | | | 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
* | | | | tree sitter comments injections (#1527)Mathis Brossier2022-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * tree sitter comments injections * trailing newlines & julia fix * Update runtime/queries/julia/injections.scm Co-authored-by: Michael Davis <michael.davis@nfiindustries.com> Co-authored-by: Michael Davis <michael.davis@nfiindustries.com>
* | | | | feat(languages): Elm (#1514)Jared Ramirez2022-01-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add Elm language support * Fix docs gen * Updates based on PR feedback
* | | | | Add terminal emulator to bug report (#1535)Ivan Tham2022-01-18
| | | | |
* | | | | build(deps): bump libloading from 0.7.2 to 0.7.3 (#1530)dependabot[bot]2022-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [libloading](https://github.com/nagisa/rust_libloading) from 0.7.2 to 0.7.3. - [Release notes](https://github.com/nagisa/rust_libloading/releases) - [Commits](https://github.com/nagisa/rust_libloading/commits/0.7.3) --- updated-dependencies: - dependency-name: libloading dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | build(deps): bump serde_json from 1.0.74 to 1.0.75 (#1531)dependabot[bot]2022-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [serde_json](https://github.com/serde-rs/json) from 1.0.74 to 1.0.75. - [Release notes](https://github.com/serde-rs/json/releases) - [Commits](https://github.com/serde-rs/json/compare/v1.0.74...v1.0.75) --- updated-dependencies: - dependency-name: serde_json dependency-type: direct:production update-type: version-update:semver-patch ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | build(deps): bump smallvec from 1.7.0 to 1.8.0 (#1532)dependabot[bot]2022-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Bumps [smallvec](https://github.com/servo/rust-smallvec) from 1.7.0 to 1.8.0. - [Release notes](https://github.com/servo/rust-smallvec/releases) - [Commits](https://github.com/servo/rust-smallvec/compare/v1.7.0...v1.8.0) --- updated-dependencies: - dependency-name: smallvec dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | Dependabot/cargo/pulldown cmark 0.9.1 (#1533)Skyler Hawthorne2022-01-18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * build(deps): bump pulldown-cmark from 0.8.0 to 0.9.1 Bumps [pulldown-cmark](https://github.com/raphlinus/pulldown-cmark) from 0.8.0 to 0.9.1. - [Release notes](https://github.com/raphlinus/pulldown-cmark/releases) - [Commits](https://github.com/raphlinus/pulldown-cmark/compare/v0.8.0...v0.9.1) --- updated-dependencies: - dependency-name: pulldown-cmark dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * cmark 0.9 fixes Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* | | | | fix(auto_pairs): fix auto pairs with crlf (#1470)Skyler Hawthorne2022-01-17
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Auto pairs were resulting in incorrect ranges in the resulting when the line terminators are CRLF (i.e. Windows). It turns out this is because when we were checking if the selection was a single-width cursor, it incorrectly assumed that this would be a single char. This is not the case, as a cursor can cover a multi-code point grapheme. Therefore, we must instead explicitly work with and check graphemes to determine if the cursor should move or extend the selection. Fixes #1436
* | | | | 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>
* | | | | Update to rust 1.58, fix a bunch of optional lintsBlaž Hrastnik2022-01-16
| | | | |