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()
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_shortcut = m
require("better_escape").setup {
mapping = m,
timeout = config.options.plugin.esc_insertmode_timeout or 300,
}
end
M.blankline = function()

View File

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