Class BufferStreamApi
java.lang.Object
com.ensarsarajcic.neovim.java.api.BaseStreamApi
com.ensarsarajcic.neovim.java.api.buffer.BufferStreamApi
- All Implemented Interfaces:
NeovimBufferApi
@NeovimApiClient(name="full_buffer_api",
target=9)
public final class BufferStreamApi
extends BaseStreamApi
implements NeovimBufferApi
Implementation of
NeovimBufferApi 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.buffer.NeovimBufferApi
ADD_HIGHLIGHT, ATTACH_BUFFER, CALL, CLEAR_HIGHLIGHT, CLEAR_NAMESPACE, CREATE_USER_COMMAND, DEL_EXTMARK, DEL_KEYMAP, DEL_MARK, DEL_USER_COMMAND, DEL_VAR, DELETE, DETACH_BUFFER, GET_CHANGEDTICK, GET_COMMANDS, GET_EXTMARK_BY_ID, GET_EXTMARKS, GET_KEYMAP, GET_LINE_COUNT, GET_LINES, GET_MARK, GET_NAME, GET_NUMBER, GET_OFFSET, GET_OPTION, GET_TEXT, GET_VAR, IS_LOADED, IS_VALID, SET_EXTMARK, SET_KEYMAP, SET_LINES, SET_MARK, SET_NAME, SET_OPTION, SET_TEXT, SET_VAR, SET_VIRTUAL_TEXT -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddHighlight(int srcId, String hlGroup, int line, int colStart, int colEnd) clearHighlight(int srcId, int lineStart, int lineEnd) clearNamespace(int namespaceId, int lineStart, int lineEnd) delete(DeleteBufferOptions options) deleteExtmark(int nsId, int extmarkId) deleteKeymap(String mode, String lhs) deleteMark(String name) deleteUserCommand(String name) detach()get()getCommands(GetCommandsOptions commandsOptions) getExtmarkById(int nsId, int extmarkId, GetBufferExtmarkOptions options) getExtmarks(int nsId, VimCoords start, VimCoords end, GetBufferExtmarksOptions options) getLines(int start, int end, boolean strictIndexing) getName()getOffset(int index) isLoaded()isValid()setExtmark(int nsId, int line, int col, Map<String, Object> options) setVirtualText(int namespaceId, int line, List<HighlightedText> chunks, Map optionalParams) toString()Methods inherited from class com.ensarsarajcic.neovim.java.api.BaseStreamApi
sendWithBytesResponse, sendWithGenericResponse, sendWithNoResponse, sendWithResponseOfListOfMsgPackType, sendWithResponseOfListType, sendWithResponseOfMapType, sendWithResponseOfMsgPackType, sendWithResponseOfType
-
Constructor Details
-
BufferStreamApi
-
-
Method Details
-
get
- Specified by:
getin interfaceNeovimBufferApi
-
getLineCount
- Specified by:
getLineCountin interfaceNeovimBufferApi
-
getLines
- Specified by:
getLinesin interfaceNeovimBufferApi
-
setLines
public CompletableFuture<Void> setLines(int start, int end, boolean strictIndexing, List<String> replacement) - Specified by:
setLinesin interfaceNeovimBufferApi
-
getOffset
- Specified by:
getOffsetin interfaceNeovimBufferApi
-
getVar
- Specified by:
getVarin interfaceNeovimBufferApi
-
deleteVar
- Specified by:
deleteVarin interfaceNeovimBufferApi
-
setVar
- Specified by:
setVarin interfaceNeovimBufferApi
-
getOption
- Specified by:
getOptionin interfaceNeovimBufferApi
-
setOption
- Specified by:
setOptionin interfaceNeovimBufferApi
-
getNumber
- Specified by:
getNumberin interfaceNeovimBufferApi
-
getName
- Specified by:
getNamein interfaceNeovimBufferApi
-
setName
- Specified by:
setNamein interfaceNeovimBufferApi
-
isLoaded
- Specified by:
isLoadedin interfaceNeovimBufferApi
-
isValid
- Specified by:
isValidin interfaceNeovimBufferApi
-
getMark
- Specified by:
getMarkin interfaceNeovimBufferApi
-
getChangedTick
- Specified by:
getChangedTickin interfaceNeovimBufferApi
-
getKeymap
- Specified by:
getKeymapin interfaceNeovimBufferApi
-
setKeymap
public CompletableFuture<Void> setKeymap(String mode, String lhs, String rhs, Map<String, Boolean> options) - Specified by:
setKeymapin interfaceNeovimBufferApi
-
deleteKeymap
- Specified by:
deleteKeymapin interfaceNeovimBufferApi
-
addHighlight
public CompletableFuture<Integer> addHighlight(int srcId, String hlGroup, int line, int colStart, int colEnd) - Specified by:
addHighlightin interfaceNeovimBufferApi
-
clearHighlight
- Specified by:
clearHighlightin interfaceNeovimBufferApi
-
clearNamespace
- Specified by:
clearNamespacein interfaceNeovimBufferApi
-
setVirtualText
public CompletableFuture<Integer> setVirtualText(int namespaceId, int line, List<HighlightedText> chunks, Map optionalParams) - Specified by:
setVirtualTextin interfaceNeovimBufferApi
-
attach
- Specified by:
attachin interfaceNeovimBufferApi
-
detach
- Specified by:
detachin interfaceNeovimBufferApi
-
getCommands
- Specified by:
getCommandsin interfaceNeovimBufferApi
-
setText
public CompletableFuture<Void> setText(int startRow, int startCol, int endRow, int endCol, List<String> lines) - Specified by:
setTextin interfaceNeovimBufferApi
-
delete
- Specified by:
deletein interfaceNeovimBufferApi
-
call
- Specified by:
callin interfaceNeovimBufferApi
-
getExtmarkById
public CompletableFuture<VimCoords> getExtmarkById(int nsId, int extmarkId, GetBufferExtmarkOptions options) - Specified by:
getExtmarkByIdin interfaceNeovimBufferApi
-
getExtmarks
public CompletableFuture<List<ExtmarkInfo>> getExtmarks(int nsId, VimCoords start, VimCoords end, GetBufferExtmarksOptions options) - Specified by:
getExtmarksin interfaceNeovimBufferApi
-
setExtmark
public CompletableFuture<Integer> setExtmark(int nsId, int line, int col, Map<String, Object> options) - Specified by:
setExtmarkin interfaceNeovimBufferApi
-
deleteExtmark
- Specified by:
deleteExtmarkin interfaceNeovimBufferApi
-
deleteMark
- Specified by:
deleteMarkin interfaceNeovimBufferApi
-
setMark
public CompletableFuture<Boolean> setMark(String name, int line, int col, Map<String, Object> options) - Specified by:
setMarkin interfaceNeovimBufferApi
-
getText
public CompletableFuture<List<String>> getText(int startRow, int startCol, int endRow, int endCol, Map<String, Object> options) - Specified by:
getTextin interfaceNeovimBufferApi
-
createUserCommand
public CompletableFuture<Void> createUserCommand(String name, String command, Map<String, Object> options) - Specified by:
createUserCommandin interfaceNeovimBufferApi
-
deleteUserCommand
- Specified by:
deleteUserCommandin interfaceNeovimBufferApi
-
toString
-