summaryrefslogtreecommitdiff
path: root/test/indent
AgeCommit message (Collapse)Author
2024-06-11Tweak python block command test location and remove wall of textMaxime Coste
We do not typically go into lengthy explanation of the code in the support scripts. This would have a performance impact (as comments are not trimmed in advance) and feels out of place.
2023-10-25Fix some corner cases in c-family indentationMaxime Coste
2023-06-15Fix c-family closing brace indent behaviour on some corner casesMaxime Coste
2022-07-05Move user mappings to <space> and keep/remove selection to ,Maxime Coste
2022-07-05Make `x` just select the full linesMaxime Coste
`x` is often criticized as hard to predict due to its slightly complex behaviour of selecting next line if the current one is fully selected. Change `x` to use the previous `<a-x>` behaviour, and change `<a-x>` to trim to fully selected lines as `<a-X>` did. Adapt existing indentation script to the new behaviour
2022-07-05Merge remote-tracking branch 'ttttcrngyblflpp/fidl'Maxime Coste
2022-06-30Add FIDL filetype supportTony Gong
Add filetype support for FIDL (Fuchsia Interface Definition Language).
2022-06-26Rename Go auto-insertion hooks to make it easier to disable themJohannes Altmanninger
The canonical way to disable all auto-insertion hooks is set-option global disabled_hooks .*-insert A recent change allowed to disable hooks that insert ) and } independent of hooks that insert // (a step in the right direction, we should do it for more filetypes). Since the new hook ("go-insert-closing-delimiter") doesn't match .*-insert, it broke the above snippet. Fix this by renaming it to "go-closing-delimiter-insert". This makes it a bit less obvious how to disable only comment insertion. Not sure if there's interest in that, but make it easier by renaming "go-insert" to "go-comment-insert".
2022-06-05Golang do not align to open ( or {Tony Gong
Changed the indentation behavior such that an extra level of indentation is added after a line containing a ( or { that is not closed on the same line instead of aligning to the unclosed ( or {. This is consistent with how `go fmt` formats source code. Added regression tests.
2022-06-05Do not indent Golang comments as codeTony Gong
When indenting on newline in Go files, only remove trailing whitespace on the previous line and copy indentation of the previous line if in comment context. Added regression tests.
2022-05-29rc filetype: add some missing ModeChange hooks for trim-indentJohannes Altmanninger
Some languages have a trim-indent command but don't use it (for no apparent reason). Make them trim trailing spaces when exiting insert mode, like most other languages support scripts do.
2021-09-26lua.kak: Add test cases for unindentHugo Musso Gualandi
2021-09-26lua.kak: Add some test cases, and also fix a bugHugo Musso Gualandi
2021-06-15Merge remote-tracking branch 'greenfork/improve-elixir-hooks'Maxime Coste
2021-06-06Event better tests for commentsDmitry Matveyev
2021-06-06Event better tests for commentsDmitry Matveyev
2021-06-06Better comment inserting tests and fix implementationDmitry Matveyev
2021-06-06Better comment inserting tests and fix implementationDmitry Matveyev
2021-06-06Add more tests for "do" auto-insertDmitry Matveyev
2021-06-06Fix elixir copying comment # signDmitry Matveyev
Elixir uses # for comments, not --. Implementation is copied from Nim.
2021-06-06Add auto-inserting of "end" keyword to ElixirDmitry Matveyev
fixup! Add auto-inserting of "end" keyword to Elixir
2021-06-06Fix Ruby <ret> mid-commentDmitry Matveyev
Implementation is copied from Nim.
2021-06-06Add test for electric indentation in RubyDmitry Matveyev
2021-04-08Fix invalid insertion of ; after } closing some functionsMaxime Coste
Function taking a parameter with a struct tag on the last line before the opening { were wrongly treated as structs. Add some additional regex logic to try to catch those cases. Fixes #4136
2021-04-01rc markdown: Fix trailing whitespace removalSeerLite
Modified the test cases accordingly too
2021-03-07Support rust visibility for enum and othersIvan Tham
2021-03-07Support dedent with rust fn qualifiersIvan Tham
2021-02-17Dedent rust await function with ?Ivan Tham
2021-02-17Dedent rust empty matchIvan Tham
2020-12-17Rust test rename deindent to dedentIvan Tham
2020-12-17Rust dedent after .awaitIvan Tham
2020-12-17Rust handle [ indent like { and (Ivan Tham
2020-10-04Rust always indent after {Ivan Tham
2020-10-04Add missing rust indent after function {Ivan Tham
2020-10-01Merge remote-tracking branch 'pickfire/rust-indent' into masterMaxime Coste
2020-09-30Rust not to indent on hashIvan Tham
2020-09-28Rust reindent where to match blockIvan Tham
2020-09-27Add rust test for empty line indentIvan Tham
2020-09-27Rust improve align after partial statementIvan Tham
2020-09-27Rust align open paren for if and forIvan Tham
2020-09-26Improve shell indentation implementation.Simon Fowler
Use the custom object match command for copying indentation of blocks, rather than simply increasing/decreasing indentation when start and end statements are encountered. This fixes an issue where a newline added after an already correctly placed `else` or `fi` would trigger an unnecessary deindent. Tests have been added to ensure no regression in this behaviour.
2020-09-20Improve '}' auto inserting for go language.Michał Kruszewski
Adding "} else if ... {" was not correctly handled.
2020-09-07Provide better support for Go language.Michał Kruszewski
1. Highlight short variable declaration operator :=. 2. 'while' is not go keyword. 3. Auto insert ')', '}', when line ends with '(' or '{'.
2020-07-31Merge remote-tracking branch 'pickfire/rust-highlight'Maxime Coste
2020-07-29Add tests for javascript deindentingJohn Isom
2020-07-27Add go test cases for bad indentation edge caseJohn Isom
2020-07-27Add rust test cases for bad indentation edge caseJohn Isom
2020-07-27Add c-family test cases for bad indentation edge caseJohn Isom
2020-07-26Add test cases for go closing brace indentationJohn Isom
2020-07-26Add test cases for rust closing brace indentationJohn Isom