update
This commit is contained in:
parent
e9bfff77b8
commit
47db5a74ed
1 changed files with 9 additions and 31 deletions
26
init.lua
26
init.lua
|
|
@ -36,7 +36,7 @@ require("lazy").setup({
|
||||||
"folke/trouble.nvim",
|
"folke/trouble.nvim",
|
||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
opts = {
|
opts = {
|
||||||
auto_open = true,
|
auto_open = false,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{ "j-hui/fidget.nvim", tag = "legacy" },
|
{ "j-hui/fidget.nvim", tag = "legacy" },
|
||||||
|
|
@ -144,31 +144,8 @@ require("lazy").setup({
|
||||||
})
|
})
|
||||||
end,
|
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("dapui").setup()
|
||||||
|
|
||||||
require("lualine").setup()
|
require("lualine").setup()
|
||||||
|
|
@ -478,6 +455,7 @@ wk.register({
|
||||||
g = { telescope_builtin.live_grep, "Grep" },
|
g = { telescope_builtin.live_grep, "Grep" },
|
||||||
b = { telescope_builtin.buffers, "Find buffers" },
|
b = { telescope_builtin.buffers, "Find buffers" },
|
||||||
h = { telescope_builtin.help_tags, "Find help tags" },
|
h = { telescope_builtin.help_tags, "Find help tags" },
|
||||||
|
d = { telescope_builtin.diagnostics, "List diagnostics" },
|
||||||
r = { require("spectre").toggle, "Replace" },
|
r = { require("spectre").toggle, "Replace" },
|
||||||
},
|
},
|
||||||
t = {
|
t = {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue