fix esc_insertmode settings not getting applied in chadrc (#422)
This commit is contained in:
parent
4fcf9524ee
commit
cafd078e8f
3 changed files with 4 additions and 8 deletions
|
@ -120,10 +120,6 @@ end
|
||||||
|
|
||||||
-- below are all plugin related mappings
|
-- below are all plugin related mappings
|
||||||
|
|
||||||
M.better_escape = function()
|
|
||||||
vim.g.better_escape_shortcut = plugin_maps.better_escape.esc_insertmode or { "" }
|
|
||||||
end
|
|
||||||
|
|
||||||
M.bufferline = function()
|
M.bufferline = function()
|
||||||
local m = plugin_maps.bufferline
|
local m = plugin_maps.bufferline
|
||||||
|
|
||||||
|
|
|
@ -40,7 +40,10 @@ M.autosave = function()
|
||||||
end
|
end
|
||||||
|
|
||||||
M.better_escape = function()
|
M.better_escape = function()
|
||||||
|
local m = require("core.utils").load_config().mappings.plugin.better_escape.esc_insertmode
|
||||||
|
|
||||||
vim.g.better_escape_interval = config.options.plugin.esc_insertmode_timeout or 300
|
vim.g.better_escape_interval = config.options.plugin.esc_insertmode_timeout or 300
|
||||||
|
vim.g.better_escape_shortcut = m
|
||||||
end
|
end
|
||||||
|
|
||||||
M.blankline = function()
|
M.blankline = function()
|
||||||
|
|
|
@ -166,11 +166,8 @@ return packer.startup(function()
|
||||||
"jdhao/better-escape.vim",
|
"jdhao/better-escape.vim",
|
||||||
disable = not plugin_status.esc_insertmode,
|
disable = not plugin_status.esc_insertmode,
|
||||||
event = "InsertEnter",
|
event = "InsertEnter",
|
||||||
config = function()
|
|
||||||
require("plugins.configs.others").better_escape()
|
|
||||||
end,
|
|
||||||
setup = function()
|
setup = function()
|
||||||
require("core.mappings").better_escape()
|
require("plugins.configs.others").better_escape()
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue