aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/main.c
diff options
context:
space:
mode:
authormatveyt <35012635+matveyt@users.noreply.github.com>2022-07-17 14:14:04 +0300
committerGitHub <noreply@github.com>2022-07-17 04:14:04 -0700
commiteb9b93b5e025386ec9431c9d35a4a073d6946d1d (patch)
tree4b371f7cf93aab052770590b9b995f94c8662fbd /src/nvim/main.c
parentaae11865e1f74678a6415703ce1e076d195a2c26 (diff)
downloadrneovim-eb9b93b5e025386ec9431c9d35a4a073d6946d1d.tar.gz
rneovim-eb9b93b5e025386ec9431c9d35a4a073d6946d1d.tar.bz2
rneovim-eb9b93b5e025386ec9431c9d35a4a073d6946d1d.zip
feat(defaults): mouse=nvi #19290
Problem: Since right-click can now show a popup menu, we can provide messaging to guide users who expect 'mouse' to be disabled by default. So 'mouse' can now be enabled by default. Solution: Do it. Closes #15521
Diffstat (limited to 'src/nvim/main.c')
-rw-r--r--src/nvim/main.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/nvim/main.c b/src/nvim/main.c
index db588d4694..b06b9630e2 100644
--- a/src/nvim/main.c
+++ b/src/nvim/main.c
@@ -356,7 +356,14 @@ int main(int argc, char **argv)
abort(); // unreachable
}
- init_default_mappings(); // Default mappings.
+ // Default mappings (incl. menus)
+ Error err = ERROR_INIT;
+ Object o = nlua_exec(STATIC_CSTR_AS_STRING("return vim._init_default_mappings()"),
+ (Array)ARRAY_DICT_INIT, &err);
+ assert(!ERROR_SET(&err));
+ api_clear_error(&err);
+ assert(o.type == kObjectTypeNil);
+ api_free_object(o);
TIME_MSG("init default mappings");
init_default_autocmds();