summaryrefslogtreecommitdiff
path: root/buffer.c
diff options
context:
space:
mode:
authorpommicket <pommicket@gmail.com>2022-12-29 12:32:26 -0500
committerpommicket <pommicket@gmail.com>2022-12-29 12:32:26 -0500
commitf1e2e8382cc09bacb5da9e3c9463fea983a9e146 (patch)
tree1197682a7c1c01cc0067ccf3a6fe55bf0eb17ab8 /buffer.c
parent7dca1a04452ca6caf6e230839c48f0f9dd9d67b8 (diff)
more hover
Diffstat (limited to 'buffer.c')
-rw-r--r--buffer.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/buffer.c b/buffer.c
index 6e32770..70483a8 100644
--- a/buffer.c
+++ b/buffer.c
@@ -1453,6 +1453,12 @@ LSPDocumentPosition buffer_pos_to_lsp_document_position(TextBuffer *buffer, Buff
return docpos;
}
+BufferPos buffer_pos_from_lsp(TextBuffer *buffer, LSPPosition lsp_pos) {
+ BufferPos pos = {.line = lsp_pos.line};
+ abort(); // @TODO
+ return pos;
+}
+
LSPPosition buffer_cursor_pos_as_lsp_position(TextBuffer *buffer) {
return buffer_pos_to_lsp_position(buffer, buffer->cursor_pos);
}