diff options
Diffstat (limited to 'defaults.lua')
-rw-r--r-- | defaults.lua | 36 |
1 files changed, 9 insertions, 27 deletions
diff --git a/defaults.lua b/defaults.lua index a1363aa..5c634b3 100644 --- a/defaults.lua +++ b/defaults.lua @@ -3,7 +3,6 @@ return { {"high", "low"}, {"horizontal", "vertical"}, {"in", "out"}, - {"inner", "outer"}, {"left", "right"}, {"top", "bottom"}, {"up", "down"}, @@ -60,7 +59,6 @@ return { {"width", "height"}, {"x", "y"}, - {"0", "1"}, {"enabled", "disabled"}, {"enable", "disable"}, {"on", "off"}, @@ -69,30 +67,14 @@ return { {"header", "footer"}, - -- The tokens below can't be reliably matched by the built-in word textobject. - -- - -- TODO (maybe): automatically generate a Lua pattern from all the words - -- in the configuration table, then: - -- region = {start = selection.range.start - horizon, finish = selection.range.finish + horizon} - -- match the pattern against file:content(region) - -- and find the match that contains selection.pos. + {"[]", "{}"}, - -- {"[]", "{}"}, - -- {"(", ")"}, - -- {"[", "]"}, - -- {"{", "}"}, - -- {"'", "\"", "`"}, - - -- {"*=", "/="}, - -- {"*", "/"}, - -- {"&&", "||"}, - -- {"&", "|"}, - -- {"++", "--"}, - -- {"+=", "-="}, - -- {"+", "-"}, - -- {"<<", ">>"}, - -- {"<=", ">="}, - -- {"<", ">"}, - -- {"===", "!=="}, - -- {"==", "!="}, + {"&&", "||"}, + {"*=", "/="}, + {"++", "--"}, + {"+=", "-="}, + {"<<", ">>"}, + {"<=", ">="}, + {"===", "!=="}, + {"==", "!="}, } |