Blaž Hrastnik
|
ad3325db8e
|
minor: Remove a few unwraps.
|
2021-03-26 11:03:14 +09:00 |
|
Blaž Hrastnik
|
8b28bf2533
|
Fix broken test.
|
2021-03-25 16:53:32 +09:00 |
|
Blaž Hrastnik
|
5e6716c89c
|
Add tab_width and indent_unit config.
|
2021-03-22 13:53:36 +09:00 |
|
Blaž Hrastnik
|
59e6024186
|
Remove State from a few more signatures.
|
2021-03-18 14:17:32 +09:00 |
|
Blaž Hrastnik
|
87a6d4e736
|
minor: Simplify some code.
|
2021-02-24 16:07:39 +09:00 |
|
Blaž Hrastnik
|
8c82f8f140
|
indent: use_list indentation, fix indentation bug on open_below
use std::{
time::Duration // <- pressing `o` here would use }'s indent instead of prev line
}
|
2021-02-19 14:55:53 +09:00 |
|
Blaž Hrastnik
|
c9dd1c930e
|
treewide: &RopeSlice -> RopeSlice. It's Copy so no reason to pass by ref
|
2021-02-18 18:34:22 +09:00 |
|
Blaž Hrastnik
|
7c99ff58fd
|
nix: include rust-src so rust-analyzer works correctly.
|
2021-01-19 16:16:15 +09:00 |
|
Blaž Hrastnik
|
22e1692adc
|
indent: Fix edge cases, refactor test.
|
2021-01-10 23:46:18 +09:00 |
|
Blaž Hrastnik
|
777a80917d
|
Address clippy lints.
|
2021-01-08 16:37:36 +09:00 |
|
Blaž Hrastnik
|
7d41550a23
|
indent: refactor logic to be more correct.
Thanks to atom-sane-indentation, nvim-treesitter and tree-sitter-indent.el
for inspiration.
|
2021-01-08 16:15:12 +09:00 |
|
Blaž Hrastnik
|
b39849dde1
|
Refactor: Document type as a wrapper around barebones State.
|
2020-12-03 13:10:35 +09:00 |
|
Blaž Hrastnik
|
16828d322a
|
wip
|
2020-10-15 23:31:37 +09:00 |
|
Blaž Hrastnik
|
6e658aae1c
|
Auto-indent on enter based on tree-sitter scopes.
|
2020-10-14 18:07:42 +09:00 |
|
Blaž Hrastnik
|
d64f4beede
|
Share tab width definitions.
|
2020-10-14 13:35:54 +09:00 |
|
Blaž Hrastnik
|
00e661f600
|
Indent draft, linewise paste
|
2020-10-13 23:13:56 +09:00 |
|