Class NeovimStreamApi
java.lang.Object
com.ensarsarajcic.neovim.java.api.BaseStreamApi
com.ensarsarajcic.neovim.java.api.NeovimStreamApi
- All Implemented Interfaces:
NeovimApi
@NeovimApiClient(name="full_stream_api",
target=9)
public final class NeovimStreamApi
extends BaseStreamApi
implements NeovimApi
Full implementation of
NeovimApi based on ReactiveRpcStreamer-
Field Summary
Fields inherited from class com.ensarsarajcic.neovim.java.api.BaseStreamApi
objectMapper, reactiveRpcStreamerFields inherited from interface com.ensarsarajcic.neovim.java.api.NeovimApi
ATTACH_UI, CALL_ATOMIC, CALL_DICT_FUNCTION, CALL_FUNCTION, CHAN_SEND, CLEAR_AUTOCMDS, COMMAND_OUTPUT, CREATE_AUGROUP, CREATE_AUTOCMD, CREATE_BUF, CREATE_NAMESPACES, CREATE_USER_COMMAND, DEL_AUGROUP_BY_ID, DEL_AUGROUP_BY_NAME, DEL_AUTOCMD, DEL_CURRENT_LINE, DEL_KEYMAP, DEL_MARK, DEL_USER_COMMAND, DEL_VAR, DETACH_UI, ECHO, ERR_WRITE, ERR_WRITELN, EVAL, EVAL_STATUSLINE, EXEC, EXEC_AUTOCMDS, EXEC_LUA, EXECUTE_COMMAND, EXECUTE_LUA, FEEDKEYS, GET_ALL_OPTIONS_INFO, GET_API_INFO, GET_AUTOCMDS, GET_CHANNEL_INFO, GET_COLOR_BY_NAME, GET_COLOR_MAP, GET_COMMANDS, GET_CONTEXT, GET_CURRENT_BUF, GET_CURRENT_LINE, GET_CURRENT_TABPAGE, GET_CURRENT_WIN, GET_HIGHLIGHT_BY_ID, GET_HIGHLIGHT_BY_NAME, GET_HL_ID_BY_NAME, GET_KEYMAP, GET_MARK, GET_MODE, GET_NAMESPACES, GET_OPTION, GET_OPTION_INFO, GET_OPTION_VALUE, GET_PROC, GET_PROC_CHILDREN, GET_RUNTIME_FILE, GET_VAR, GET_VIM_VARIABLE, INPUT, INPUT_MOUSE, LIST_BUFS, LIST_CHANNELS, LIST_RUNTIME_PATHS, LIST_TABPAGES, LIST_UIS, LIST_WINS, LOAD_CONTEXT, NOTIFY, OPEN_TERM, OPEN_WIN, OUT_WRITE, PARSE_EXPRESSION, PASTE, PUT, REPLACE_TERMCODES, RESIZE_UI, RESIZE_UI_GRID, SELECT_POPUPMENU_ITEM, SET_CLIENT_INFO, SET_CURRENT_BUF, SET_CURRENT_DIR, SET_CURRENT_LINE, SET_CURRENT_TABPAGE, SET_CURRENT_WIN, SET_DECORATION_PROVIDER, SET_HL, SET_KEYMAP, SET_OPTION, SET_OPTION_VALUE, SET_POPUPMENU_HEIGHT, SET_UI_OPTION, SET_VAR, SET_VIM_VARIABLE, STRWIDTH, SUBSCRIBE_TO_EVENT, UI_PUM_SET_BOUNDS, UNSUBSCRIBE_FROM_EVENT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncallDictFunction(Map map, String function, List args) callFunction(String name, List<Object> args) clearAutocommands(Map<String, Object> options) commandOutput(String command) createAugroup(String name, Map<String, Object> options) createBuffer(boolean listed, boolean scratch) createNamespace(String name) deleteAugroupById(int id) deleteAugroupByName(String name) deleteAutocommand(int autocommandId) deleteKeymap(String mode, String lhs) deleteMark(String name) deleteUserCommand(String name) deleteVariable(String name) detachUi()evalStatusline(String statuslineString, EvalStatuslineOptions options) executeCommand(String command) executeLua(String luaCode, List<String> args) getAutocommands(Map<String, Object> options) getChannelInfo(int channel) getColorByName(String name) getCommands(GetCommandsOptions getCommandsOptions) getContext(Map<String, Object> options) getHighlightById(int id, boolean rgb) getHighlightByName(String name, boolean rgb) getHlIdByName(String name) getMode()getOptionValue(String name, Map<String, Object> options) getRuntimeFile(String name, boolean all) getUis()getVariable(String name) getVimVariable(String name) inputMouse(Mouse.Button button, Mouse.Action action, String modifier, int grid, int row, int col) loadContext(Map<String, Object> contextMap) notifyUser(String message, int logLevel, Map<String, Object> options) openWindow(Buffer buffer, boolean enter, Map<String, Object> config) parseExpression(String expression, String flags, boolean highlight) replaceTermcodes(String strToReplace, boolean fromPart, boolean doLt, boolean special) resizeUi(int width, int height) resizeUiGrid(int width, int height) selectPopupmenuItem(int item, boolean insert, boolean finish, Map<String, Object> options) sendAtomic(List<RequestMessage> requestMessages) setClientInfo(String name, ClientVersionInfo clientVersionInfo, ClientType clientType, Map<String, MethodInfo> methods, ClientAttributes clientAttributes) setCurrentBuffer(Buffer buffer) setCurrentDir(String directoryPath) setCurrentLine(String lineContent) setCurrentTabpage(Tabpage tabpage) setCurrentWindow(Window window) setDecorationProvider(int hlId, Map<String, Object> options) setPopupmenuHeight(int height) setUiOption(String name, Object value) setVariable(String name, Object value) setVimVariable(String name, Object value) stringWidth(String string) subscribeToEvent(String event) uiPumSetBounds(int width, int height, int row, int col) unsubscribeFromEvent(String event) writelnToError(String text) writeToError(String text) writeToOutput(String text) Methods inherited from class com.ensarsarajcic.neovim.java.api.BaseStreamApi
sendWithBytesResponse, sendWithGenericResponse, sendWithNoResponse, sendWithResponseOfListOfMsgPackType, sendWithResponseOfListType, sendWithResponseOfMapType, sendWithResponseOfMsgPackType, sendWithResponseOfType
-
Constructor Details
-
NeovimStreamApi
-
-
Method Details
-
sendAtomic
- Specified by:
sendAtomicin interfaceNeovimApi
-
getHighlightById
- Specified by:
getHighlightByIdin interfaceNeovimApi
-
getHighlightByName
- Specified by:
getHighlightByNamein interfaceNeovimApi
-
attachUi
-
detachUi
-
resizeUi
-
resizeUiGrid
- Specified by:
resizeUiGridin interfaceNeovimApi
-
inputMouse
public CompletableFuture<Void> inputMouse(Mouse.Button button, Mouse.Action action, String modifier, int grid, int row, int col) - Specified by:
inputMousein interfaceNeovimApi
-
executeLua
- Specified by:
executeLuain interfaceNeovimApi
-
executeCommand
- Specified by:
executeCommandin interfaceNeovimApi
-
setCurrentDir
- Specified by:
setCurrentDirin interfaceNeovimApi
-
subscribeToEvent
- Specified by:
subscribeToEventin interfaceNeovimApi
-
unsubscribeFromEvent
- Specified by:
unsubscribeFromEventin interfaceNeovimApi
-
eval
-
callFunction
- Specified by:
callFunctionin interfaceNeovimApi
-
feedKeys
-
input
-
getKeymap
-
setKeymap
-
deleteKeymap
- Specified by:
deleteKeymapin interfaceNeovimApi
-
setUiOption
- Specified by:
setUiOptionin interfaceNeovimApi
-
setVariable
- Specified by:
setVariablein interfaceNeovimApi
-
getVariable
- Specified by:
getVariablein interfaceNeovimApi
-
deleteVariable
- Specified by:
deleteVariablein interfaceNeovimApi
-
getVimVariable
- Specified by:
getVimVariablein interfaceNeovimApi
-
setVimVariable
- Specified by:
setVimVariablein interfaceNeovimApi
-
setOption
-
getOption
-
getColorByName
- Specified by:
getColorByNamein interfaceNeovimApi
-
replaceTermcodes
public CompletableFuture<String> replaceTermcodes(String strToReplace, boolean fromPart, boolean doLt, boolean special) - Specified by:
replaceTermcodesin interfaceNeovimApi
-
commandOutput
- Specified by:
commandOutputin interfaceNeovimApi
-
writeToOutput
- Specified by:
writeToOutputin interfaceNeovimApi
-
writeToError
- Specified by:
writeToErrorin interfaceNeovimApi
-
writelnToError
- Specified by:
writelnToErrorin interfaceNeovimApi
-
stringWidth
- Specified by:
stringWidthin interfaceNeovimApi
-
listRuntimePaths
- Specified by:
listRuntimePathsin interfaceNeovimApi
-
getCurrentLine
- Specified by:
getCurrentLinein interfaceNeovimApi
-
setCurrentLine
- Specified by:
setCurrentLinein interfaceNeovimApi
-
deleteCurrentLine
- Specified by:
deleteCurrentLinein interfaceNeovimApi
-
getBuffers
- Specified by:
getBuffersin interfaceNeovimApi
-
createBuffer
- Specified by:
createBufferin interfaceNeovimApi
-
getCurrentBuffer
- Specified by:
getCurrentBufferin interfaceNeovimApi
-
setCurrentBuffer
- Specified by:
setCurrentBufferin interfaceNeovimApi
-
setCurrentWindow
- Specified by:
setCurrentWindowin interfaceNeovimApi
-
setCurrentTabpage
- Specified by:
setCurrentTabpagein interfaceNeovimApi
-
getWindows
- Specified by:
getWindowsin interfaceNeovimApi
-
openWindow
public CompletableFuture<NeovimWindowApi> openWindow(Buffer buffer, boolean enter, Map<String, Object> config) - Specified by:
openWindowin interfaceNeovimApi
-
getCurrentWindow
- Specified by:
getCurrentWindowin interfaceNeovimApi
-
getTabpages
- Specified by:
getTabpagesin interfaceNeovimApi
-
getCurrentTabpage
- Specified by:
getCurrentTabpagein interfaceNeovimApi
-
getColorMap
- Specified by:
getColorMapin interfaceNeovimApi
-
getMode
-
getApiInfo
- Specified by:
getApiInfoin interfaceNeovimApi
-
callDictFunction
- Specified by:
callDictFunctionin interfaceNeovimApi
-
getCommands
public CompletableFuture<Map<String,CommandInfo>> getCommands(GetCommandsOptions getCommandsOptions) - Specified by:
getCommandsin interfaceNeovimApi
-
setClientInfo
public CompletableFuture<Void> setClientInfo(String name, ClientVersionInfo clientVersionInfo, ClientType clientType, Map<String, MethodInfo> methods, ClientAttributes clientAttributes) - Specified by:
setClientInfoin interfaceNeovimApi
-
getChannelInfo
- Specified by:
getChannelInfoin interfaceNeovimApi
-
getChannels
- Specified by:
getChannelsin interfaceNeovimApi
-
parseExpression
- Specified by:
parseExpressionin interfaceNeovimApi
-
getUis
-
getProcessChildren
- Specified by:
getProcessChildrenin interfaceNeovimApi
-
getProcess
- Specified by:
getProcessin interfaceNeovimApi
-
getNamespaces
- Specified by:
getNamespacesin interfaceNeovimApi
-
createNamespace
- Specified by:
createNamespacein interfaceNeovimApi
-
paste
-
put
-
getContext
- Specified by:
getContextin interfaceNeovimApi
-
loadContext
- Specified by:
loadContextin interfaceNeovimApi
-
setDecorationProvider
- Specified by:
setDecorationProviderin interfaceNeovimApi
-
uiPumSetBounds
- Specified by:
uiPumSetBoundsin interfaceNeovimApi
-
getHlIdByName
- Specified by:
getHlIdByNamein interfaceNeovimApi
-
setHl
-
execLua
-
notifyUser
- Specified by:
notifyUserin interfaceNeovimApi
-
getRuntimeFile
- Specified by:
getRuntimeFilein interfaceNeovimApi
-
getAllOptionsInfo
- Specified by:
getAllOptionsInfoin interfaceNeovimApi
-
getOptionInfo
- Specified by:
getOptionInfoin interfaceNeovimApi
-
echo
public CompletableFuture<Void> echo(List<HighlightedText> chunks, boolean history, Map<String, Object> options) -
openTerm
-
chanSend
-
exec
-
deleteMark
- Specified by:
deleteMarkin interfaceNeovimApi
-
getMark
-
evalStatusline
public CompletableFuture<EvalStatuslineResult> evalStatusline(String statuslineString, EvalStatuslineOptions options) - Specified by:
evalStatuslinein interfaceNeovimApi
-
getAutocommands
- Specified by:
getAutocommandsin interfaceNeovimApi
-
createAutocommand
public CompletableFuture<Integer> createAutocommand(List<String> events, Map<String, Object> options) - Specified by:
createAutocommandin interfaceNeovimApi
-
deleteAutocommand
- Specified by:
deleteAutocommandin interfaceNeovimApi
-
clearAutocommands
- Specified by:
clearAutocommandsin interfaceNeovimApi
-
createAugroup
- Specified by:
createAugroupin interfaceNeovimApi
-
deleteAugroupById
- Specified by:
deleteAugroupByIdin interfaceNeovimApi
-
deleteAugroupByName
- Specified by:
deleteAugroupByNamein interfaceNeovimApi
-
executeAutocommands
- Specified by:
executeAutocommandsin interfaceNeovimApi
-
getOptionValue
- Specified by:
getOptionValuein interfaceNeovimApi
-
setOptionValue
public CompletableFuture<Void> setOptionValue(String name, Object value, Map<String, Object> options) - Specified by:
setOptionValuein interfaceNeovimApi
-
createUserCommand
public CompletableFuture<Void> createUserCommand(String name, String command, Map<String, Object> options) - Specified by:
createUserCommandin interfaceNeovimApi
-
deleteUserCommand
- Specified by:
deleteUserCommandin interfaceNeovimApi
-