From 149e2a93c5a0b0a5c6464d7af89f047a1677576c Mon Sep 17 00:00:00 2001 From: QQ Date: Mon, 9 Oct 2023 16:14:40 +0800 Subject: [PATCH] update --- init.lua | 3 ++- lua/normal/plug.lua | 3 ++- lua/normal/plugsettings/edit-plugs.lua | 5 ++--- lua/normal/plugsettings/hop.lua | 12 ++++++++++++ 4 files changed, 18 insertions(+), 5 deletions(-) create mode 100644 lua/normal/plugsettings/hop.lua diff --git a/init.lua b/init.lua index cdb45b6..e2fa618 100644 --- a/init.lua +++ b/init.lua @@ -8,7 +8,8 @@ if not G.loop.fs_stat(lazypath) then "clone", "--filter=blob:none", "http://git.qqnewbie.top/newbieQQ/lazy.nvim.git", - "--branch=stable", -- latest stable release + -- latest stable release + "--branch=stable", lazypath, }) diff --git a/lua/normal/plug.lua b/lua/normal/plug.lua index 62f29f3..39a7496 100644 --- a/lua/normal/plug.lua +++ b/lua/normal/plug.lua @@ -3,7 +3,8 @@ return { -- 多光标 'terryma/vim-multiple-cursors', - require("normal.plugsettings.edit-plugs.lua"), + require("normal.plugsettings.edit-plugs"), + require("normal.plugsettings.hop"), } diff --git a/lua/normal/plugsettings/edit-plugs.lua b/lua/normal/plugsettings/edit-plugs.lua index 268068e..298a768 100644 --- a/lua/normal/plugsettings/edit-plugs.lua +++ b/lua/normal/plugsettings/edit-plugs.lua @@ -15,12 +15,11 @@ return { }) end }, - { + }, + { -- 括号箭头 'yaocccc/nvim-hlchunk', -- 注释插件 'tpope/vim-commentary', - } } - } diff --git a/lua/normal/plugsettings/hop.lua b/lua/normal/plugsettings/hop.lua new file mode 100644 index 0000000..6ba914f --- /dev/null +++ b/lua/normal/plugsettings/hop.lua @@ -0,0 +1,12 @@ +return { + "phaazon/hop.nvim", + branch = "v2", + config = function () + require("hop").setup{keys = 'etovxqpdygfblzhckisuran'} + G.map({ + {"n", "f", ":HopChar1MW", {noremap = true}}, + {"n", "F", ":HopChar2MW", {noremap = true}}, + }) + + end +}