Commit graph

17 commits

Author SHA1 Message Date
Santos Gallegos
be8f656087
Use stylua for autoformat code (#1480) 2021-07-04 21:12:17 +00:00
kiyan
7deedc4939 fix: prev_node nil check 2021-04-02 18:41:51 +02:00
kiyan
0f9bdb0939 fix: avoid infinite loop which causes some breakage 2021-04-01 20:50:25 +02:00
kiyan
a2cee8852b fix: indent on new line 2021-04-01 20:50:25 +02:00
Steven Sojka
6863f79118
refactor(all): language tree adaption (#1105) 2021-03-30 08:18:24 -05:00
Brady Phillips
bdbae28b24 Fix indent size
Indent size should equal shiftwidth, unless shiftwidth is 0 in which
case tabstop should be used.
2021-03-22 17:36:19 +01:00
BonaBeavis
be9c4ab36d Fix indent size 2021-02-22 18:17:46 +01:00
yzia2000
839f621955 fixed #630 2021-02-04 20:22:57 +01:00
Jędrzej Boczar
252472081e indent: introduce @ignore to avoid indenting some nodes (e.g. comments) 2021-01-14 13:54:43 +01:00
Jędrzej Boczar
5123231424 indent: introduce @return to further tune indentation on o/<cr> 2021-01-14 13:54:43 +01:00
Jędrzej Boczar
32cc79b7c9 indent: improve behavior on o/<cr> in languages like Python 2021-01-14 13:54:43 +01:00
Jędrzej Boczar
42bc217a54 indent: fix wrong line number passed to descendant_for_range 2021-01-14 13:54:43 +01:00
kiyan42
f2c219cddc indent fixes 2021-01-04 17:42:19 +01:00
Senghan Bright
d3180720f1 fix: support shiftwidth for indents. 2020-12-16 11:43:03 +01:00
Thomas Vigouroux
808765a6c8
fix: update interface following languagetree merge (#687) 2020-11-23 12:46:27 -06:00
kiyan42
1735528db5 Treesitter indent
also fixes the memoize_by_buf_tick function
2020-10-19 21:08:15 +02:00
kiyan42
36b5f6f075 start indent module 2020-10-19 21:08:15 +02:00