✨ feat(nvim): added boole extra
This commit is contained in:
parent
6cfb880107
commit
910e95e764
3 changed files with 29 additions and 17 deletions
|
@ -24,6 +24,7 @@
|
||||||
"plugins.extras.coding.ai.codeium",
|
"plugins.extras.coding.ai.codeium",
|
||||||
"plugins.extras.coding.ai.gpt",
|
"plugins.extras.coding.ai.gpt",
|
||||||
"plugins.extras.coding.annotation",
|
"plugins.extras.coding.annotation",
|
||||||
|
"plugins.extras.coding.boole",
|
||||||
"plugins.extras.coding.debug.debugprint",
|
"plugins.extras.coding.debug.debugprint",
|
||||||
"plugins.extras.coding.dial",
|
"plugins.extras.coding.dial",
|
||||||
"plugins.extras.coding.multicursor",
|
"plugins.extras.coding.multicursor",
|
||||||
|
|
25
.config/nvim/lua/plugins/extras/coding/boole.lua
Normal file
25
.config/nvim/lua/plugins/extras/coding/boole.lua
Normal file
|
@ -0,0 +1,25 @@
|
||||||
|
return {
|
||||||
|
"nat-418/boole.nvim",
|
||||||
|
-- stylua: ignore
|
||||||
|
keys = {
|
||||||
|
{ "<C-a>", "<cmd>Boole increment<cr>", expr = true, desc = "Increment" },
|
||||||
|
{ "<C-x>", "<cmd>Boole decrement<cr>", expr = true, desc = "Decrement" },
|
||||||
|
},
|
||||||
|
opts = {
|
||||||
|
mappings = {
|
||||||
|
increment = "<C-a>",
|
||||||
|
decrement = "<C-x>",
|
||||||
|
},
|
||||||
|
-- User defined loops
|
||||||
|
additions = {
|
||||||
|
{ "Foo", "Bar" },
|
||||||
|
{ "tic", "tac", "toe" },
|
||||||
|
},
|
||||||
|
allow_caps_additions = {
|
||||||
|
{ "enable", "disable" },
|
||||||
|
-- enable → disable
|
||||||
|
-- Enable → Disable
|
||||||
|
-- ENABLE → DISABLE
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -1,24 +1,10 @@
|
||||||
return {
|
return {
|
||||||
"monaqa/dial.nvim",
|
"monaqa/dial.nvim",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
-- splutylua: ignore
|
-- stylua: ignore
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{ "<A-a>", function() return require("dial.map").inc_normal() end, expr = true, desc = "Increment" },
|
||||||
"<C-a>",
|
{ "<A-x>", function() return require("dial.map").dec_normal() end, expr = true, desc = "Decrement" },
|
||||||
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",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local augend = require("dial.augend")
|
local augend = require("dial.augend")
|
||||||
|
|
Loading…
Add table
Reference in a new issue