-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add arrow function to declaration action
- Loading branch information
1 parent
f6d182f
commit 6dda5fa
Showing
8 changed files
with
47 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,4 +2,5 @@ std = luajit | |
cache = true | ||
codes = true | ||
|
||
ignore = { "631" } | ||
read_globals = { "vim" } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
---@alias ShrubAction "statement_block_surround" | "statement_block_remove" | "fun_declaration_to_arrow" | "arrow_fun_to_declaration" | ||
|
||
---@class ShrubActionConfig | ||
---@field query string treesitter query string | ||
---@field root_node_type string[] nearest node type that will be used as the root of the query | ||
---@field handle_captures fun(captures:table<string,TSNode>, bufnr:integer): any execute an action on table of captured nodes based on the captures where the key is the capture name and the value is the TSNode | ||
---@field handle_captures fun(captures:table<string,TSNode>, bufnr:integer): any execute action on table of captured nodes based on the captures where the key is the capture name and the value is the TSNode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters