Basic lsp and precompiler header support

This commit is contained in:
2025-12-24 11:08:25 +00:00
parent 85d4039a5e
commit a10dd92249
20 changed files with 1499 additions and 389 deletions

View File

@@ -1,9 +1,12 @@
#include "../libs/tree-sitter/lib/include/tree_sitter/api.h"
#include <string>
#ifndef TS_DEF_H
#define TS_DEF_H
#include "./pch.h"
struct Language {
std::string name;
const TSLanguage *(*fn)();
uint8_t lsp_id = 0;
};
extern "C" {
@@ -22,3 +25,5 @@ const TSLanguage *tree_sitter_make();
const TSLanguage *tree_sitter_python();
const TSLanguage *tree_sitter_ruby();
}
#endif