Improve highlighting structure

- switched to a sparse delta based map
- true lazy-loading to avoid any unneccessary allocations
- fixed windows management api
This commit is contained in:
2026-02-11 18:18:28 +00:00
parent d79ea4e75a
commit 5b66f503e4
24 changed files with 481 additions and 549 deletions

View File

@@ -2,6 +2,7 @@
#define EDITOR_H
#include "editor/indents.h"
#include "extentions/hover.h"
#include "io/knot.h"
#include "io/sysio.h"
#include "syntax/extras.h"
@@ -37,7 +38,7 @@ struct Editor : Window {
VAI ai = {};
std::shared_mutex lsp_mtx;
std::atomic<struct LSPInstance *> lsp = nullptr;
bool hover_active = false;
HoverBox *hover_popup = init_hover();
bool diagnostics_active = false;
std::atomic<int> lsp_version = 1;
IndentationEngine indents = {};