update
This commit is contained in:
parent
1869e956d9
commit
e9bfff77b8
1 changed files with 30 additions and 7 deletions
23
init.lua
23
init.lua
|
|
@ -144,8 +144,31 @@ require("lazy").setup({
|
|||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"phaazon/hop.nvim",
|
||||
branch = "v2", -- optional but strongly recommended
|
||||
config = function()
|
||||
-- you can configure Hop the way you like here; see :h hop-config
|
||||
require("hop").setup({ keys = "etovxqpdygfblzhckisuran" })
|
||||
end,
|
||||
},
|
||||
})
|
||||
|
||||
local hop = require("hop")
|
||||
local directions = require("hop.hint").HintDirection
|
||||
vim.keymap.set("", "f", function()
|
||||
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false })
|
||||
end, { remap = true })
|
||||
vim.keymap.set("", "F", function()
|
||||
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false })
|
||||
end, { remap = true })
|
||||
vim.keymap.set("", "t", function()
|
||||
hop.hint_char1({ direction = directions.AFTER_CURSOR, current_line_only = false, hint_offset = -1 })
|
||||
end, { remap = true })
|
||||
vim.keymap.set("", "T", function()
|
||||
hop.hint_char1({ direction = directions.BEFORE_CURSOR, current_line_only = false, hint_offset = 1 })
|
||||
end, { remap = true })
|
||||
|
||||
require("dapui").setup()
|
||||
|
||||
require("lualine").setup()
|
||||
|
|
|
|||
Loading…
Reference in a new issue