chore: move g:nvim_tree_quit_on_open into open_file action config

This commit is contained in:
kiyan
2022-02-05 18:42:08 +01:00
parent 756b7acc52
commit 1fe29f8eef
7 changed files with 35 additions and 40 deletions

View File

@@ -169,6 +169,7 @@ local DEFAULT_MAPPING_CONFIG = {
function M.setup(opts)
require'nvim-tree.actions.system-open'.setup(opts.system_open)
require'nvim-tree.actions.trash'.setup(opts.trash)
require'nvim-tree.actions.open-file'.setup(opts)
local user_map_config = (opts.view or {}).mappings or {}
local options = vim.tbl_deep_extend('force', DEFAULT_MAPPING_CONFIG, user_map_config)