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()
|
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()
|
||||||
|
@ -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,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user