mirror of
https://github.com/neovim/neovim.git
synced 2025-10-01 07:28:34 +00:00
refactor(api): handle option dicts properly
Do not copy a lot of lua strings (dict keys) to just strequal() them Just compare them directly to a dedicated hash function. feat(generators): HASHY McHASHFACE
This commit is contained in:
52
src/nvim/api/keysets.lua
Normal file
52
src/nvim/api/keysets.lua
Normal file
@@ -0,0 +1,52 @@
|
||||
return {
|
||||
context = {
|
||||
"types";
|
||||
};
|
||||
set_extmark = {
|
||||
"id";
|
||||
"end_line";
|
||||
"end_col";
|
||||
"hl_group";
|
||||
"virt_text";
|
||||
"virt_text_pos";
|
||||
"virt_text_win_col";
|
||||
"virt_text_hide";
|
||||
"hl_eol";
|
||||
"hl_mode";
|
||||
"ephemeral";
|
||||
"priority";
|
||||
"right_gravity";
|
||||
"end_right_gravity";
|
||||
"virt_lines";
|
||||
"virt_lines_above";
|
||||
"virt_lines_leftcol";
|
||||
};
|
||||
keymap = {
|
||||
"noremap";
|
||||
"nowait";
|
||||
"silent";
|
||||
"script";
|
||||
"expr";
|
||||
"unique";
|
||||
};
|
||||
get_commands = {
|
||||
"builtin";
|
||||
};
|
||||
float_config = {
|
||||
"row";
|
||||
"col";
|
||||
"width";
|
||||
"height";
|
||||
"anchor";
|
||||
"relative";
|
||||
"win";
|
||||
"bufpos";
|
||||
"external";
|
||||
"focusable";
|
||||
"zindex";
|
||||
"border";
|
||||
"style";
|
||||
"noautocmd";
|
||||
};
|
||||
}
|
||||
|
Reference in New Issue
Block a user