♻️ refactor(nvim): changed bindings
This commit is contained in:
parent
66af3b6fc1
commit
8bdeb25cf8
3 changed files with 24 additions and 35 deletions
|
@ -1,7 +1,7 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"HampusHauffman/block.nvim",
|
"HampusHauffman/block.nvim",
|
||||||
keys = { { "<leader>ub", "<cmd>Block<CR>", desc = "Toggle Block" } },
|
keys = { { "<leader>uB", "<cmd>Block<CR>", desc = "Toggle Block" } },
|
||||||
opts = {
|
opts = {
|
||||||
percent = 0.9,
|
percent = 0.9,
|
||||||
depth = 4,
|
depth = 4,
|
||||||
|
|
|
@ -1,35 +1,24 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
"monaqa/dial.nvim",
|
"monaqa/dial.nvim",
|
||||||
config = function()
|
config = true,
|
||||||
local augend = require("dial.augend")
|
|
||||||
|
|
||||||
require("dial.config").augends:register_group({
|
|
||||||
default = {
|
|
||||||
augend.integer.alias.decimal, -- 100
|
|
||||||
augend.integer.alias.hex, -- 0xAB
|
|
||||||
augend.date.alias["%Y/%m/%d"], -- 2020/01/01
|
|
||||||
augend.date.alias["%Y-%m-%d"], -- 2020-01-01
|
|
||||||
augend.constant.alias.bool, -- true
|
|
||||||
augend.semver.alias.semver, -- 1.0.1
|
|
||||||
augend.date.alias["%m/%d"], -- 12/01
|
|
||||||
augend.date.alias["%H:%M"], -- 14:30
|
|
||||||
-- typescript specific keywords below
|
|
||||||
augend.constant.new({ elements = { "asc", "desc" }, word = true, cyclic = true }),
|
|
||||||
augend.constant.new({ elements = { "let", "const" }, word = true, cyclic = true }),
|
|
||||||
augend.constant.new({
|
|
||||||
elements = { "debug", "info", "notice", "warning", "error", "crit", "alert", "emerg" },
|
|
||||||
word = true,
|
|
||||||
cyclic = true,
|
|
||||||
}),
|
|
||||||
augend.constant.new({ elements = { "forEach", "map" }, word = true, cyclic = true }),
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
-- stylua: ignore
|
|
||||||
keys = {
|
keys = {
|
||||||
{ "<C-a>", function() return require("dial.map").inc_normal() end, expr = true, desc = "Increment" },
|
{
|
||||||
{ "<C-x>", function() return require("dial.map").dec_normal() end, expr = true, desc = "Decrement" },
|
"<C-a>",
|
||||||
|
function()
|
||||||
|
return require("dial.map").inc_normal()
|
||||||
|
end,
|
||||||
|
expr = true,
|
||||||
|
desc = "Increment",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<C-x>",
|
||||||
|
function()
|
||||||
|
return require("dial.map").dec_normal()
|
||||||
|
end,
|
||||||
|
expr = true,
|
||||||
|
desc = "Decrement",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,9 +3,9 @@ return {
|
||||||
"Weissle/persistent-breakpoints.nvim",
|
"Weissle/persistent-breakpoints.nvim",
|
||||||
event = "BufReadPost",
|
event = "BufReadPost",
|
||||||
keys = {
|
keys = {
|
||||||
{ "<leader>dbd", "<cmd>PBClearAllBreakpoints<cr>", desc = "Delete All Breakpoints" },
|
{ "<leader>dd", "<cmd>PBClearAllBreakpoints<cr>", desc = "Delete All Breakpoints" },
|
||||||
{ "<leader>dbc", "<cmd>PBSetConditionalBreakpoint<cr>", desc = "Set Conditional Breakpoint" },
|
{ "<leader>dB", "<cmd>PBSetConditionalBreakpoint<cr>", desc = "Breakpoint Condition" },
|
||||||
{ "<leader>dbb", "<cmd>PBToggleBreakpoint<cr>", desc = "Toggle Breakpoint" },
|
{ "<leader>db", "<cmd>PBToggleBreakpoint<cr>", desc = "Toggle Breakpoint" },
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
load_breakpoints_event = { "BufReadPost" },
|
load_breakpoints_event = { "BufReadPost" },
|
||||||
|
|
Loading…
Add table
Reference in a new issue