Lsp completion logic
This commit is contained in:
20
include/ui/completionbox.h
Normal file
20
include/ui/completionbox.h
Normal file
@@ -0,0 +1,20 @@
|
||||
#ifndef UI_COMPLETIONBOX_H
|
||||
#define UI_COMPLETIONBOX_H
|
||||
|
||||
#include "io/sysio.h"
|
||||
#include "pch.h"
|
||||
#include "utils/utils.h"
|
||||
|
||||
struct CompletionBox {
|
||||
struct CompletionSession *session;
|
||||
bool hidden = true;
|
||||
std::vector<ScreenCell> cells;
|
||||
Coord size;
|
||||
Coord position;
|
||||
|
||||
CompletionBox(CompletionSession *s) : session(s) {}
|
||||
void render_update();
|
||||
void render(Coord pos);
|
||||
};
|
||||
|
||||
#endif
|
||||
@@ -9,8 +9,7 @@
|
||||
struct DiagnosticBox {
|
||||
std::vector<VWarn> warnings;
|
||||
std::vector<ScreenCell> cells;
|
||||
uint32_t box_width;
|
||||
uint32_t box_height;
|
||||
Coord size;
|
||||
|
||||
void clear();
|
||||
void render_first();
|
||||
|
||||
@@ -12,8 +12,7 @@ struct HoverBox {
|
||||
std::atomic<bool> is_markup;
|
||||
uint32_t scroll_;
|
||||
std::vector<ScreenCell> cells;
|
||||
uint32_t box_width;
|
||||
uint32_t box_height;
|
||||
Coord size;
|
||||
std::vector<Highlight> highlights;
|
||||
std::vector<Span> hover_spans;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user