Add tree-sitter grammars for common languages I use.
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
#include "../include/main.h"
|
||||
#include "../include/ts.h"
|
||||
#include <cstdint>
|
||||
#include <sys/ioctl.h>
|
||||
|
||||
void handle_editor_event(Editor *editor, KeyEvent event) {
|
||||
static std::chrono::steady_clock::time_point last_click_time =
|
||||
@@ -294,6 +295,9 @@ void handle_editor_event(Editor *editor, KeyEvent event) {
|
||||
case ',':
|
||||
dedent_line(editor, editor->cursor.row);
|
||||
break;
|
||||
case CTRL('s'):
|
||||
save_file(editor);
|
||||
break;
|
||||
case 'p':
|
||||
uint32_t len;
|
||||
char *text = get_from_clipboard(&len);
|
||||
|
||||
Reference in New Issue
Block a user