Module packages.wordmotion.nvim.lua.wordmotion
simulate vim's word motion luacheck: ignore 111 113 212
Functions
| M.Cursor:new (cursor) | |
| M.Cursor:from_path (txt) | factory method |
| M.Cursor:get_tokens (str) | cut string. |
| M.Cursor:get_line (l) | get line |
| M.Cursor:get_lines () | get lines |
| M.Cursor:get_character (forward, cursor) | get next/previous character's position |
| M.Cursor:get_cursor (count, begin, cursor) | get cursor position |
| M.Cursor:get_position (count, begin, cursor) | get position |
| M.Cursor:move (begin) | move cursor |
Functions
- M.Cursor:new (cursor)
-
Parameters:
- cursor table?
Returns:
-
table? cursor
See also:
- M.Cursor:from_path (txt)
-
factory method
Parameters:
- txt string
Returns:
-
table
- M.Cursor:get_tokens (str)
-
cut string. abstract method
Parameters:
- str string
Returns:
-
{text: string, illegal: boolean?, startindex: integer, endindex: integer}[]
- M.Cursor:get_line (l)
-
get line
Parameters:
- l integer
Returns:
-
string line
- M.Cursor:get_lines ()
-
get lines
Returns:
-
string[]
- M.Cursor:get_character (forward, cursor)
-
get next/previous character's position
Parameters:
- forward boolean
- cursor integer[]
Returns:
-
integer[] cursor
- M.Cursor:get_cursor (count, begin, cursor)
-
get cursor position
Parameters:
- count integer
- begin boolean jump to token's begin: b/w
- cursor integer[]
Returns:
-
integer[] cursor
- M.Cursor:get_position (count, begin, cursor)
-
get position
Parameters:
- count integer
- begin boolean jump to token's begin: b/w
- cursor integer[]
Returns:
-
integer[] cursor
- M.Cursor:move (begin)
-
move cursor
Parameters:
- begin boolean jump to token's begin: b/w