mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 15:42:14 +02:00
updated to the latest api version for which key
This commit is contained in:
@@ -13,36 +13,27 @@ return {
|
|||||||
local whichKey = require("which-key")
|
local whichKey = require("which-key")
|
||||||
|
|
||||||
whichKey.register({
|
whichKey.register({
|
||||||
["<leader>b"] = {
|
"<leader>b",
|
||||||
name = "Barbar",
|
desc = "Barbar",
|
||||||
d = {
|
{
|
||||||
"<cmd>BarbarDisable<cr>",
|
"<leader>bc",
|
||||||
"Disable Barbar"
|
desc = "Barbar Close",
|
||||||
},
|
{
|
||||||
e = {
|
"<leader>bcc",
|
||||||
"<cmd>BarbarEnable<cr>",
|
|
||||||
"Enable Barbar"
|
|
||||||
},
|
|
||||||
c = {
|
|
||||||
name = "Close",
|
|
||||||
c = {
|
|
||||||
"<cmd>BufferCloseAllButCurrent<cr>",
|
"<cmd>BufferCloseAllButCurrent<cr>",
|
||||||
"Close all buffers but the current one"
|
desc = "Barbar Close All But Current"
|
||||||
},
|
},
|
||||||
p = {
|
{
|
||||||
"<cmd>BufferCloseAllButPinned<cr>",
|
"<leader>bcl",
|
||||||
"Close all buffers but the pinned ones"
|
"<cmd>BufferCloseAllBuffersLeft<cr>",
|
||||||
|
desc = "Barbar Close All Buffers Left"
|
||||||
},
|
},
|
||||||
l = {
|
{
|
||||||
"<cmd>BufferCloseBuffersLeft<cr>",
|
"<leader>bcr",
|
||||||
"Close all buffers to the left"
|
"<cmd>BufferCloseAllBuffersRight<cr>",
|
||||||
|
desc = "Barbar Close All Buffers Right"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
r = {
|
|
||||||
"<cmd>BufferCloseBuffersRight<cr>",
|
|
||||||
"Close all buffers to the right"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
|
|
||||||
map("n", "<A-,>", "<Cmd>BufferPrevious<CR>", opts)
|
map("n", "<A-,>", "<Cmd>BufferPrevious<CR>", opts)
|
||||||
|
|||||||
@@ -36,21 +36,23 @@ return {
|
|||||||
})
|
})
|
||||||
|
|
||||||
require("which-key").register({
|
require("which-key").register({
|
||||||
["<leader>c"] = {
|
"<leader>c",
|
||||||
name = "Cloak",
|
desc = "Cloak",
|
||||||
t = {
|
{
|
||||||
|
"<leader>ct",
|
||||||
":CloakToggle<CR>",
|
":CloakToggle<CR>",
|
||||||
"Toggle"
|
desc = "Toggle Cloak"
|
||||||
},
|
},
|
||||||
d = {
|
{
|
||||||
|
"<leader>cd",
|
||||||
":CloakDisable<CR>",
|
":CloakDisable<CR>",
|
||||||
"Disable"
|
desc = "Cloak disable"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>ce",
|
||||||
|
":CloakDisable<CR>",
|
||||||
|
desc = "Cloak enable"
|
||||||
},
|
},
|
||||||
e = {
|
|
||||||
":CloakEnable<CR>",
|
|
||||||
"Enable"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -14,21 +14,15 @@ return {
|
|||||||
neogit.setup({})
|
neogit.setup({})
|
||||||
|
|
||||||
whichKey.register({
|
whichKey.register({
|
||||||
["<leader>g"] = {
|
"<leader>g",
|
||||||
name = "Neogit",
|
desc = "Neogit",
|
||||||
g = {
|
{
|
||||||
|
"<leader>go",
|
||||||
function()
|
function()
|
||||||
neogit.open()
|
neogit.open()
|
||||||
end,
|
end,
|
||||||
"Open Neogit"
|
desc = "Neogit open"
|
||||||
},
|
},
|
||||||
c = {
|
|
||||||
function()
|
|
||||||
neogit.open({ "commit" })
|
|
||||||
end,
|
|
||||||
"Open Neogit commit"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
})
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -68,52 +68,5 @@ return {
|
|||||||
["core.export"] = {}
|
["core.export"] = {}
|
||||||
},
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
require("which-key").register({
|
|
||||||
["<leader>o"] = {
|
|
||||||
name = "Neorg",
|
|
||||||
i = {
|
|
||||||
":Neorg index<CR>",
|
|
||||||
"Index"
|
|
||||||
},
|
|
||||||
r = {
|
|
||||||
":Neorg return<CR>",
|
|
||||||
"Return"
|
|
||||||
},
|
|
||||||
l = {
|
|
||||||
name = "List",
|
|
||||||
t = {
|
|
||||||
":Neorg keybind norg core.pivot.toggle-list-type",
|
|
||||||
"Toggle"
|
|
||||||
},
|
|
||||||
i = {
|
|
||||||
":Neorg keybind norg core.pivot.invert-list-type",
|
|
||||||
"Invert"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
w = {
|
|
||||||
name = "Workspace",
|
|
||||||
n = {
|
|
||||||
":Neorg workspace notes",
|
|
||||||
"Notes"
|
|
||||||
},
|
|
||||||
d = {
|
|
||||||
":Neorg workspace default",
|
|
||||||
"Default"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
p = {
|
|
||||||
name = "Presenter",
|
|
||||||
s = {
|
|
||||||
":Neorg presenter start<CR>",
|
|
||||||
"Start",
|
|
||||||
},
|
|
||||||
S = {
|
|
||||||
":Neorg presenter stop<CR>",
|
|
||||||
"Stop",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -6,33 +6,6 @@ return {
|
|||||||
|
|
||||||
vim.notify = notify
|
vim.notify = notify
|
||||||
|
|
||||||
require("which-key").register({
|
|
||||||
["<leader>u"] = {
|
|
||||||
name = "User Interface",
|
|
||||||
n = {
|
|
||||||
name = "Notification",
|
|
||||||
e = {
|
|
||||||
function()
|
|
||||||
vim.notify = notify
|
|
||||||
end,
|
|
||||||
"Enable notifications"
|
|
||||||
},
|
|
||||||
d = {
|
|
||||||
function()
|
|
||||||
vim.notify = function() end
|
|
||||||
end,
|
|
||||||
"Disable notifications"
|
|
||||||
},
|
|
||||||
l = {
|
|
||||||
function()
|
|
||||||
require("telescope").extensions.notify.notify()
|
|
||||||
end,
|
|
||||||
"List notifications"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
})
|
|
||||||
|
|
||||||
require("notify.config").setup({
|
require("notify.config").setup({
|
||||||
enabled = false,
|
enabled = false,
|
||||||
stages = "fade_in_slide_out",
|
stages = "fade_in_slide_out",
|
||||||
|
|||||||
Reference in New Issue
Block a user