aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
...
* Discard LSP publishDiagnostic when LS is not initialized (#3403)Michael Davis2022-08-31
| | | | | | | | | | | | | | | | | This is invalid according to the [LSP spec]: > In addition the server is not allowed to send any requests > or notifications to the client until it has responded with an > InitializeResult, with the exception that during the initialize > request the server is allowed to send the notifications > window/showMessage, window/logMessage and telemetry/event as well > as the window/showMessageRequest request to the client. So we should discard the message when the language server is not yet initialized. This can happen if the server sends textDocument/publishDiagnostics before responding to the initialize request. clojure-lsp appears to exhibit this behavior in the wild. [LSP Spec]: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#initialize
* Update tree-sitter-rust to latestMichael Davis2022-08-31
| | | | | | There don't appear to be any regressions from the updates. Also included is a fix which highlights the "#" as in attributes as punctuation. This was previously unhighlighted.
* erlang: Fix highlighting of empty recordsMichael Davis2022-08-31
| | | | | | | | | | For example -record(state, {}) Would not highlight `state` as a type since the alternation didn't allow for an empty tuple. Allowing the inner atom of the tuple to be optional fixes this case.
* erlang: Use Edoc style auto-pairsMichael Davis2022-08-31
| | | | | | Specifically this changes backtic's right-hand-side pair character to single-quote which is the syntax for inline and block code in Edoc.
* Fix missing C highlightsMichael Davis2022-08-31
| | | | | | * "const" keyword * booleans * <=/>= operators
* Reword the feature_request issue template as enhancement (#3481)Michael Davis2022-08-31
|
* packaging: Point to homebrew-core instead of tap (#3513)Michael Davis2022-08-31
|
* Delete invalid indents.scm queriesMichael Davis2022-08-31
|
* Add query-check xtaskMichael Davis2022-08-31
|
* tree-sitter: Prevent panic on loading queriesMichael Davis2022-08-31
|
* tree-sitter: Refactor lazy query loadingMichael Davis2022-08-31
| | | | | | The code for loading queries can be shared between indent and textobjects queries. In both cases we want to kick an error message out to the logs.
* fix: Don't translate mouse up events as downBlaž Hrastnik2022-08-31
|
* jumplist: Add documents to view history (#3593)Michael Davis2022-08-31
| | | | | | | | | | | | | | This change adds documents to the view's document history Vec. (This is used by `ga` for example to access the last buffer.) Previously, a sequence like so would have confusing behavior: 1. Open file A: any document with an active language server 2. Find some definition that lives in another file - file B - with `gd` 3. Jump back in the jumplist with `C-o` to file A 4. Use `ga` intending to switch back to file B The behavior prior to this change was that `ga` would switch to file A: you could not use `ga` to switch to file B.
* Move mode transition logic to handle_keymap_event() (#2634)Lucy2022-08-31
| | | | | Co-authored-by: Blaž Hrastnik <blaz@mxxn.io> Co-authored-by: Blaž Hrastnik <blaz@mxxn.io>
* Fix extra selection with regex anchors (^,$) (#3598)A-Walrus2022-08-31
| | | Also added a bunch of tests to ensure correct behaviour
* Use the original document and view for mode transition hooks (#3508)Michael Davis2022-08-31
| | | | | | | When changing focus, the lookup with `current!` may change the view and end up executing mode transition hooks on the newly focused view. We should use the same view and document to execute mode transition hooks so that switching away from a view triggers history save points.
* Themes update (#3587)Alexander Brevig2022-08-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * lint: snazzy * lint: pop-dark * lint: penumbra+ * lint: noctis_bordo * lint: ingrid * lint: flatwhite * lint: doom_acario_dark * lint: dark_plus * lint: boo_berry * fix: use 47345E per author instruction * lint: bogster * lint: everforest * lint: acme * lint: serika * fix: use nasty_red per author suggestion * lint: nord * lint: dracula * lint: gruvbox * fix: cursorline gruvbox * lint: autumn * fix: no fg for cursorline * lint: ayu * lint: rose_pine * lint: monokai * lint: solarized * lint: spacebones * fix: penumbra bg!=sky * Update runtime/themes/ayu_light.toml Co-authored-by: Ivan Tham <pickfire@riseup.net> * Update runtime/themes/ayu_light.toml Co-authored-by: Ivan Tham <pickfire@riseup.net> * fix: fg for ui.help thanks @pickfire * fix: ingrid with input from @intarga Co-authored-by: Ivan Tham <pickfire@riseup.net>
* build(deps): bump iana-time-zone from 0.1.44 to 0.1.47 (#3611)dependabot[bot]2022-08-30
| | | | | | | | | | | | | | | | | Bumps [iana-time-zone](https://github.com/strawlab/iana-time-zone) from 0.1.44 to 0.1.47. - [Release notes](https://github.com/strawlab/iana-time-zone/releases) - [Changelog](https://github.com/strawlab/iana-time-zone/blob/main/CHANGELOG.md) - [Commits](https://github.com/strawlab/iana-time-zone/compare/0.1.44...v0.1.47) --- updated-dependencies: - dependency-name: iana-time-zone dependency-type: indirect ... Signed-off-by: dependabot[bot] <support@github.com> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Fix fleetish theme (#3607)Kristoffer Flottorp2022-08-30
| | | Co-authored-by: krfl <kr.fl@outlook.com>
* fix: Recalculate completion after pasting into promptBlaž Hrastnik2022-08-30
|
* completion: remove_follow links on filename_implBlaž Hrastnik2022-08-30
| | | | | We don't need to follow links since we're only scanning the current directory level (non-recursive).
* Fix process spawning error handling (#3349)PiergiorgioZagaria2022-08-30
| | | | | * Fix process spawning error handling * Log stderr in any case
* Derive Document language name from languages.toml name key (#3338)Michael Davis2022-08-30
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Derive Document language name from `languages.toml` `name` key This changes switches from deriving the language name from the `languages.toml` `scope` key to `name` (`language_id` in the `LanguageConfiguration` type). For the most part it works to derive the language name from scope by chopping off `source.` or `rsplit_once` on `.` but for some languages we have now like html (`text.html.basic`), it doesn't. This also should be a more accurate fallback for the `language_id` method which is used in LSP and currently uses the `rsplit_once` strategy. Here we expose the language's name as `language_name` on `Document` and replace ad-hoc calculations of the language name with the new method. This is most impactful for the `file-type` statusline element which is using `language_id`. * Use `Document::language_name` for the `file-type` statusline element The `file-type` indicator element in the statusline was using `Document::language_id` which is meant to be used to for telling Language Servers what language we're using. That works for languages with `language-server` configurations in `languages.toml` but shows text otherwise. The new `Document::language_name` method from the parent commit is a more accurate way to determine the language.
* Allow less than and greater than in macros (#3556)A-Walrus2022-08-30
| | | | | * Allow less than and greater than in macros * Fix failing test
* build(deps): bump futures-executor from 0.3.23 to 0.3.24 (#3602)dependabot[bot]2022-08-29
| | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump futures-util from 0.3.23 to 0.3.24 (#3603)dependabot[bot]2022-08-29
| | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* build(deps): bump lsp-types from 0.93.0 to 0.93.1 (#3601)dependabot[bot]2022-08-29
| | | Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
* Sonokai (#3595)Roman Chumak2022-08-29
| | | Co-authored-by: Roman Chumak <p4ymak@yandex.ru>
* let extend-line respect range direction (#3046)Bob2022-08-29
| | | | | | | | | | | | | * let extend-line respect range direction * fix extend above logic * keep `x` existing binding * Update book/src/keymap.md Co-authored-by: Ivan Tham <pickfire@riseup.net> Co-authored-by: Ivan Tham <pickfire@riseup.net>
* Add bracketed paste (#3233)Charlie Groves2022-08-29
|
* Add wezterm to get_terminal_provider (#3588)unrelentingtech2022-08-29
| | | https://github.com/wez/wezterm is a terminal emulator with its own built-in multiplexer
* Add fleetish theme. Based on the unreleased JetBrains Fleet editor (#3591)Kristoffer Flottorp2022-08-29
| | | Co-authored-by: krfl <kr.fl@outlook.com>
* update colors for papercolor-light (#3585)Soc Virnyl S. Estela2022-08-28
| | | | | | | | | | | | | | | | | * theme: add papercolor light * fix typo * add markup highlighting * theme: added diff colors forgot to add it to PaperColor Light * fix some ui colors * assign more color for markup headings * change heading color to bright7
* Fix rust text objects (#3590)David2022-08-28
|
* Add c-sharp textobjects (#3494)Gustavo Bogarín2022-08-27
| | | | Co-authored-by: Gustavo Bogarín <gbogarin@outlook.com> Co-authored-by: Gustavo Bogarín <gbogarin@posibillian.tech>
* Pascal support (#3542)ath32022-08-25
|
* Fixed Doom acario theme (#3533) (#3539)Luna2022-08-25
| | | | | | Changed the `namespace` style to fix the issue (#3533). I also made the theme look a little closer to how it looks in Emacs, I did however opt to still have it slightly different as I found it easier to read with my port than on the original in Emacs. I also sorted most keys (mainly from line 8 to 28) for the theme to be in alphabetical order, so it's easier to have a quick glance where they are.
* Update tree-sitter-ruby (#3527)Michael Davis2022-08-25
|
* AWK Regex injection (#3535)ath32022-08-24
|
* AWK support (#3528)ath32022-08-24
|
* Julia queries: fix non-consecutive docstring highlightChristoph Horn2022-08-24
|
* Julia queries: prevent constructors to be highlighted as functionsChristoph Horn2022-08-24
| | | | Also improves the captures of the remaining identifiers.
* Julia queries: limit markdown highlighting to docstringsChristoph Horn2022-08-24
|
* Julia queries: major refactoring of `highlights.scm`, add regex injections, ↵Christoph Horn2022-08-24
| | | | locals
* Julia queries: update grammar, fix breaking changesChristoph Horn2022-08-24
|
* feat(lang): Add esdl grammar (#3526)Jaden2022-08-24
|
* Improve dart indent (#3419)seb-bl2022-08-24
|
* add syntax highlights for xit (#3521)ChemicalXandco2022-08-24
|
* Fix markdown indented code block rendering (#3503)Clay2022-08-24
|
* fix: Reset document mode when losing focusBlaž Hrastnik2022-08-23
| | | | Fixes #3090