replace better-escape.vim with better-escape.nvim

This commit is contained in:
siduck76 2021-09-22 21:26:30 +05:30
parent 1658bf9fc6
commit 0b30ed27d5
2 changed files with 6 additions and 5 deletions

View file

@ -41,9 +41,10 @@ end
M.better_escape = function() M.better_escape = function()
local m = require("core.utils").load_config().mappings.plugin.better_escape.esc_insertmode local m = require("core.utils").load_config().mappings.plugin.better_escape.esc_insertmode
require("better_escape").setup {
vim.g.better_escape_interval = config.options.plugin.esc_insertmode_timeout or 300 mapping = m,
vim.g.better_escape_shortcut = m timeout = config.options.plugin.esc_insertmode_timeout or 300,
}
end end
M.blankline = function() M.blankline = function()

View file

@ -163,10 +163,10 @@ return packer.startup(function()
} }
use { use {
"jdhao/better-escape.vim", "max397574/better-escape.nvim",
disable = not plugin_status.esc_insertmode, disable = not plugin_status.esc_insertmode,
event = "InsertEnter", event = "InsertEnter",
setup = function() config = function()
require("plugins.configs.others").better_escape() require("plugins.configs.others").better_escape()
end, end,
} }