Add textobjects and indents to cmake (#1307)
This commit is contained in:
parent
5d7b5db8ab
commit
ec878e4011
3 changed files with 16 additions and 1 deletions
|
@ -3,7 +3,7 @@
|
|||
| bash | ✓ | | | `bash-language-server` |
|
||||
| c | ✓ | | | `clangd` |
|
||||
| c-sharp | ✓ | | | |
|
||||
| cmake | ✓ | | | `cmake-language-server` |
|
||||
| cmake | ✓ | ✓ | ✓ | `cmake-language-server` |
|
||||
| comment | ✓ | | | |
|
||||
| cpp | ✓ | | | `clangd` |
|
||||
| css | ✓ | | | |
|
||||
|
|
12
runtime/queries/cmake/indents.toml
Normal file
12
runtime/queries/cmake/indents.toml
Normal file
|
@ -0,0 +1,12 @@
|
|||
indent = [
|
||||
"if_condition",
|
||||
"foreach_loop",
|
||||
"while_loop",
|
||||
"function_def",
|
||||
"macro_def",
|
||||
"normal_command",
|
||||
]
|
||||
|
||||
outdent = [
|
||||
")"
|
||||
]
|
3
runtime/queries/cmake/textobjects.scm
Normal file
3
runtime/queries/cmake/textobjects.scm
Normal file
|
@ -0,0 +1,3 @@
|
|||
(macro_def) @function.around
|
||||
|
||||
(argument) @parameter.inside
|
Loading…
Reference in a new issue