replace better-escape.vim with better-escape.nvim
This commit is contained in:
parent
1658bf9fc6
commit
0b30ed27d5
|
@ -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()
|
||||
|
|
|
@ -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,
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue