Blaž Hrastnik
5545f8ebb5
dap: Add RunInTerminal reverse request, support replying to requests
2021-12-03 16:09:28 +09:00
Blaž Hrastnik
bcf70d8e67
dap: All of these calls don't need &mut
2021-12-03 13:29:46 +09:00
Blaž Hrastnik
43fbb6d965
Make dap_start non-blocking
2021-12-03 13:27:00 +09:00
Blaž Hrastnik
371c84f70b
cargo fmt
2021-12-03 12:51:55 +09:00
Blaž Hrastnik
34f46e7502
Bump rust to 1.57, fix new lint failures
2021-12-03 12:48:07 +09:00
Blaž Hrastnik
032aaffa15
dap: Split call/request in the same way LSP does
2021-12-03 12:41:07 +09:00
Blaž Hrastnik
2dbf966293
dap: Start working on runInTerminal support
2021-12-03 11:59:44 +09:00
Blaž Hrastnik
0d73a4d23a
dap: console = internalConsole is actually not a lldb-vscode param
2021-12-03 10:18:23 +09:00
Blaž Hrastnik
d31bef7fea
lsp: Don't panic if init fails
...
We correctly filter out the language server inside Document to ignore it
if the capabilities are missing, so this way it'll simply ignore the
errored out LSP rather than panicking.
2021-12-03 10:05:27 +09:00
Blaž Hrastnik
01f7a312d0
Address new lint on 1.57
2021-12-03 10:02:44 +09:00
Blaž Hrastnik
a45df12699
nix: Update to lld 13, drop flake-compat (was unused)
2021-12-03 10:02:07 +09:00
Blaž Hrastnik
119dee2980
fix: Correctly detect empty transactions
...
Fixes #1221
2021-12-02 23:49:54 +09:00
WindSoilder
27ffc79c44
Add monokai pro theme ( #1206 )
...
* add monokai_pro theme
* add monokai_pro theme
* claim the inspired theme and original author
* make diagnostic underlined
2021-12-02 13:51:27 +09:00
Ivan Tham
e2b428cc2d
Add last modified file (gm) ( #1093 )
2021-12-02 13:46:57 +09:00
Bob
418b833d2b
fix goto_window index crash ( #1207 )
2021-12-02 13:42:34 +09:00
Blaž Hrastnik
d14ca05d6b
Simplify some cases that use return None to use ?
2021-12-02 10:31:19 +09:00
Blaž Hrastnik
de5e5863aa
dap: Use cursor_line over cursor + char_to_line
2021-12-02 10:24:17 +09:00
Blaž Hrastnik
54f8e5c9c3
dap: Fix an off-by-one and move the function over to commands/dap
2021-12-02 10:22:17 +09:00
Blaž Hrastnik
573cb39926
dap: Remove some unwraps
2021-12-02 10:20:19 +09:00
Blaž Hrastnik
ffc89e483b
Mark some more TODOs as resolved
2021-12-01 19:28:29 +09:00
Blaž Hrastnik
dfd499f5a9
dap: Highlight line of current stack frame
2021-12-01 19:23:42 +09:00
Blaž Hrastnik
c955eaa6cd
Revert "Improve dedent behavior, make kill_to_line_end behave like emacs ( #1173 )"
...
1. pressing o on a line with no indentation will open a new line as
expected, but esc will then delete the line altogether
2. the kill_line behavior happens after insert mode changes are already
commited to history, and the change isn't commited. pressing u after
this will break highlighting & undo history
This reverts commit c08d2fae58
.
2021-12-01 13:40:54 +09:00
Blaž Hrastnik
662ecf0cd4
Annotate Theme::highlight with #[inline]
2021-12-01 13:13:50 +09:00
Blaž Hrastnik
259678585c
ui: Optimize tree-sitter style lookups
...
Tree sitter returns an index referring to the position of the scope in
the scopes array. We can use that same index to avoid a hashmap lookup
and instead store the styles in an array.
This currently stores the styles in both a map and an array because the
UI still uses hashmap lookups, but it's a reasonable tradeoff.
2021-12-01 13:08:20 +09:00
Blaž Hrastnik
7bbf4c5b06
ui: Only calculate span styling when it's actually in bounds
2021-12-01 12:57:57 +09:00
Blaž Hrastnik
d562e13e1f
minor: Use anchor::ensure in some cases
2021-12-01 12:57:22 +09:00
Blaž Hrastnik
b4fd3148e3
These TODOs have been resolved
2021-12-01 12:56:41 +09:00
George Rodrigues
3e15aead4a
Fix typo on docs ( #1201 )
2021-12-01 09:11:25 +09:00
Blaž Hrastnik
96ae5897a1
Remove another parameter from render_view
2021-12-01 01:08:52 +09:00
Blaž Hrastnik
84e939ef58
Provide a single gutter component that does breakpoint || diagnostic
2021-12-01 00:24:45 +09:00
Blaž Hrastnik
d906911417
dap: Prevent crashes on files with no name or breakpoints
2021-11-30 17:59:30 +09:00
Blaž Hrastnik
30ac5869df
dap: Extract diagnostics gutter into gutters.rs
2021-11-30 17:56:00 +09:00
Blaž Hrastnik
8ffafb826f
dap: Rewrite breakpoints so that there's a single set maintained
2021-11-30 17:56:00 +09:00
Blaž Hrastnik
3633f85b38
Pass editor into render_view & gutter, reducing the number of params
2021-11-30 16:47:46 +09:00
WindSoilder
c08d2fae58
Improve dedent behavior, make kill_to_line_end behave like emacs ( #1173 )
...
* restore indent when press esc right after open a new line
* add comment for restore_indent
* fix, and make kill to line end behaves like emacs
* update comment
* fix comment
* adjust cancel restore_indent situation
* check esc logic in mode transaction
* improve comment
* add more check for dedent
* update comment
* use matches to check for last_cmd
* no need to introduct CommandFun type
2021-11-30 16:40:38 +09:00
Blaž Hrastnik
9ed930b233
Merge remote-tracking branch 'origin/master' into debug
2021-11-30 13:06:30 +09:00
dependabot[bot]
94296229e7
build(deps): bump futures-executor from 0.3.17 to 0.3.18
...
Bumps [futures-executor](https://github.com/rust-lang/futures-rs ) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.17...0.3.18 )
---
updated-dependencies:
- dependency-name: futures-executor
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 09:08:37 +09:00
dependabot[bot]
5313d0f04e
build(deps): bump anyhow from 1.0.48 to 1.0.51
...
Bumps [anyhow](https://github.com/dtolnay/anyhow ) from 1.0.48 to 1.0.51.
- [Release notes](https://github.com/dtolnay/anyhow/releases )
- [Commits](https://github.com/dtolnay/anyhow/compare/1.0.48...1.0.51 )
---
updated-dependencies:
- dependency-name: anyhow
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 08:48:36 +09:00
dependabot[bot]
fcd39adcaa
build(deps): bump futures-util from 0.3.17 to 0.3.18
...
Bumps [futures-util](https://github.com/rust-lang/futures-rs ) from 0.3.17 to 0.3.18.
- [Release notes](https://github.com/rust-lang/futures-rs/releases )
- [Changelog](https://github.com/rust-lang/futures-rs/blob/master/CHANGELOG.md )
- [Commits](https://github.com/rust-lang/futures-rs/compare/0.3.17...0.3.18 )
---
updated-dependencies:
- dependency-name: futures-util
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 08:47:25 +09:00
dependabot[bot]
987c4ad97f
build(deps): bump serde_json from 1.0.71 to 1.0.72
...
Bumps [serde_json](https://github.com/serde-rs/json ) from 1.0.71 to 1.0.72.
- [Release notes](https://github.com/serde-rs/json/releases )
- [Commits](https://github.com/serde-rs/json/compare/v1.0.71...v1.0.72 )
---
updated-dependencies:
- dependency-name: serde_json
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 08:47:17 +09:00
dependabot[bot]
82889d7c41
build(deps): bump actions/cache from 2.1.6 to 2.1.7
...
Bumps [actions/cache](https://github.com/actions/cache ) from 2.1.6 to 2.1.7.
- [Release notes](https://github.com/actions/cache/releases )
- [Commits](https://github.com/actions/cache/compare/v2.1.6...v2.1.7 )
---
updated-dependencies:
- dependency-name: actions/cache
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2021-11-30 08:47:10 +09:00
Corey Powell
0dd2303f64
Merge pull request #1184 from nichobi/patch-1
...
Remove defunct helix-bin AUR link
2021-11-29 08:51:46 -05:00
Nicholas Boyd Isacsson
6204c38556
Remove defunct helix-bin AUR link
2021-11-29 13:07:32 +01:00
Gokul Soumya
058796c18e
Change default cursors to block for all modes
2021-11-29 11:09:04 +05:30
Blaž Hrastnik
225e8ccf31
Extract gutters into helix-view
2021-11-29 11:00:28 +09:00
Blaž Hrastnik
27c1a84f05
Reuse a text buffer for each gutter line
2021-11-29 11:00:28 +09:00
Blaž Hrastnik
ba45db84d4
Tie the GutterFn lifetime to the doc so we can avoid cloning data
2021-11-29 11:00:28 +09:00
Blaž Hrastnik
c71c9f69e2
TODO
2021-11-29 11:00:28 +09:00
Blaž Hrastnik
30171416cb
Gutter functions
2021-11-29 11:00:28 +09:00
Bob
42fde95223
Accept count for goto_window ( #1033 )
...
* accept count for goto_window
also fix view is not fullfilled issue
* fix fulfilled mispell
* Update helix-term/src/commands.rs
Co-authored-by: Ivan Tham <pickfire@riseup.net>
* Update helix-term/src/commands.rs
Co-authored-by: Ivan Tham <pickfire@riseup.net>
* fix merge issue
* revert line computation logic
Co-authored-by: Ivan Tham <pickfire@riseup.net>
2021-11-29 10:58:21 +09:00