-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy path4coder_vim_include.h
76 lines (61 loc) · 1.69 KB
/
4coder_vim_include.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
//// Author(BYP)
//
// You can add or even 'override' entries in vim_request_vtable and vim_text_object_vtable if you'd like
// just make sure it's declared in the #define before including this file
//
// Haven't written correct movement for end\END boundaries
//
// Clicking filebar lister items is a bit hacky. 4coder doesn't expect a lister overtop multiple views
// Visual_Block/Visual_Insert can do the basics, but wasn't written for robustness
//
///////////////////////////////////
CUSTOM_ID(colors, defcolor_vim_filebar_pop);
CUSTOM_ID(colors, defcolor_vim_chord_text);
CUSTOM_ID(colors, defcolor_vim_chord_unresolved);
CUSTOM_ID(colors, defcolor_vim_chord_error);
// [0,1]
#ifndef VIM_DO_ANIMATE
#define VIM_DO_ANIMATE 1
#endif
// {unnamed, system}
#ifndef VIM_DEFAULT_REGISTER
#define VIM_DEFAULT_REGISTER unnamed
#endif
// [0,1]
#ifndef VIM_USE_BOTTOM_LISTER
#define VIM_USE_BOTTOM_LISTER 0
#endif
// [0,1]
#ifndef VIM_USE_REIGSTER_BUFFER
#define VIM_USE_REIGSTER_BUFFER 1
#endif
// [0,1]
#ifndef VIM_USE_TRADITIONAL_CHORDS
#define VIM_USE_TRADITIONAL_CHORDS 1
#endif
// n,m : 0 < n <= m
#ifndef VIM_LISTER_RANGE
#define VIM_LISTER_RANGE 3,5
#endif
// (0.f, 1.f]
#ifndef VIM_LISTER_MAX_RATIO
#define VIM_LISTER_MAX_RATIO 0.55f
#endif
// [0,)
#ifndef VIM_ADDITIONAL_REQUESTS
#define VIM_ADDITIONAL_REQUESTS 0
#endif
// [0,)
#ifndef VIM_ADDITIONAL_TEXT_OBJECTS
#define VIM_ADDITIONAL_TEXT_OBJECTS 0
#endif
// [0,)
#ifndef VIM_ADDITIONAL_PEEK
#define VIM_ADDITIONAL_PEEK 0
#endif
/// If you _really_ want to change dynamic register allocation, go for it
#ifndef VIM_GROW_RATE
#define VIM_GROW_RATE(S) (Max(u64(128), u64(1.5*(S))))
#endif
#include "4coder_vim_keycode_lut.h"
#include "4coder_vim_base_types.h"