Commit graph

22 commits

Author SHA1 Message Date
Riley Bruins
558c7ad7bf fix(lua): proper indent after multiline string arg 2024-08-05 10:07:41 +02:00
Riley Bruins
4836c1df65 fix(lua): indent functions before they are closed
Fixes #6786
2024-07-16 13:17:36 +02:00
Charles Chiu
26171d8f10 chore: clean duplicate node 2024-06-12 10:25:02 +02:00
Pham Huy Hoang
57a8acf0c4 chore: query formatting 2024-01-19 16:58:37 +01:00
George Harker
cb568af539 use indent.X syntax for captures and properties of set directives
update CONTRIBUTING.md

adjust indents for bass

fix doc capture comment
2023-03-24 13:07:53 -04:00
Kiyan
d7f06bfb13
fix(indents): indents for error block (css, lua) (#3207) 2022-07-21 13:48:03 +02:00
Jędrzej Boczar
717fef738b fix(indent/lua): wrong for nested tables due to branch on opening pairs 2022-04-06 21:28:11 +02:00
Stephan Seitz
5fd68ba0c2 indents(lua): make ")" `@indent_end
Fixes #2476
2022-02-06 20:47:15 +01:00
Stephan Seitz
a14970861c indents(lua): use (comment) @auto 2022-02-05 18:54:55 +01:00
Stephan Seitz
1b0a74afa8 indent(lua): ignore comment 2022-02-05 18:54:55 +01:00
Stephan Seitz
ff96940767 docs: add @zero_indent to CONTRIBUTING.md 2022-02-05 18:54:55 +01:00
Stephan Seitz
eb2b73a5b0 indents(lua): fix comment indentation 2022-02-05 18:54:55 +01:00
Stephan Seitz
b06961a519 fix(indents): re-parse before each indent 2022-02-05 18:54:55 +01:00
Munif Tanjim
11e7ee1d91
fix(indent): lua - support @indent_end (#2454) 2022-02-04 22:08:18 +01:00
Munif Tanjim
c0110e34aa feat: rewrite indent module 2022-01-21 10:51:51 +01:00
Munif Tanjim
baf94219aa feat: improve indent module
get_node_at_line should return appropriate child if available
2022-01-21 10:51:51 +01:00
Christian Clason
c80715f883
feat(lua)!: switch from our fork to MunifTanjim's (#2272)
also take queries from https://github.com/MunifTanjim/nvim-treesitter-lua/tree/main/queries/lua

BREAKING CHANGE: queries are not compatible; modules will have to update
2022-01-18 22:15:26 +01:00
elianiva
0bf8f58cd2 feat: use @ignore for comments and multiline strings 2021-03-01 23:28:53 +01:00
kiyan
2d82a7fe07 add do statement to lua indents 2021-02-23 00:28:43 +01:00
Lewis Russell
362204f85c lua: Add more indent nodes 2021-01-20 10:36:11 +01:00
kiyan42
f2c219cddc indent fixes 2021-01-04 17:42:19 +01:00
kiyan42
1735528db5 Treesitter indent
also fixes the memoize_by_buf_tick function
2020-10-19 21:08:15 +02:00