mirror of
https://github.com/aminnairi/dotfiles.git
synced 2026-09-14 11:02:13 +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")
|
||||
|
||||
whichKey.register({
|
||||
["<leader>b"] = {
|
||||
name = "Barbar",
|
||||
d = {
|
||||
"<cmd>BarbarDisable<cr>",
|
||||
"Disable Barbar"
|
||||
},
|
||||
e = {
|
||||
"<cmd>BarbarEnable<cr>",
|
||||
"Enable Barbar"
|
||||
},
|
||||
c = {
|
||||
name = "Close",
|
||||
c = {
|
||||
"<leader>b",
|
||||
desc = "Barbar",
|
||||
{
|
||||
"<leader>bc",
|
||||
desc = "Barbar Close",
|
||||
{
|
||||
"<leader>bcc",
|
||||
"<cmd>BufferCloseAllButCurrent<cr>",
|
||||
"Close all buffers but the current one"
|
||||
desc = "Barbar Close All But Current"
|
||||
},
|
||||
p = {
|
||||
"<cmd>BufferCloseAllButPinned<cr>",
|
||||
"Close all buffers but the pinned ones"
|
||||
{
|
||||
"<leader>bcl",
|
||||
"<cmd>BufferCloseAllBuffersLeft<cr>",
|
||||
desc = "Barbar Close All Buffers Left"
|
||||
},
|
||||
l = {
|
||||
"<cmd>BufferCloseBuffersLeft<cr>",
|
||||
"Close all buffers to the left"
|
||||
{
|
||||
"<leader>bcr",
|
||||
"<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)
|
||||
|
||||
@@ -36,21 +36,23 @@ return {
|
||||
})
|
||||
|
||||
require("which-key").register({
|
||||
["<leader>c"] = {
|
||||
name = "Cloak",
|
||||
t = {
|
||||
"<leader>c",
|
||||
desc = "Cloak",
|
||||
{
|
||||
"<leader>ct",
|
||||
":CloakToggle<CR>",
|
||||
"Toggle"
|
||||
desc = "Toggle Cloak"
|
||||
},
|
||||
d = {
|
||||
{
|
||||
"<leader>cd",
|
||||
":CloakDisable<CR>",
|
||||
"Disable"
|
||||
desc = "Cloak disable"
|
||||
},
|
||||
{
|
||||
"<leader>ce",
|
||||
":CloakDisable<CR>",
|
||||
desc = "Cloak enable"
|
||||
},
|
||||
e = {
|
||||
":CloakEnable<CR>",
|
||||
"Enable"
|
||||
}
|
||||
}
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
@@ -14,21 +14,15 @@ return {
|
||||
neogit.setup({})
|
||||
|
||||
whichKey.register({
|
||||
["<leader>g"] = {
|
||||
name = "Neogit",
|
||||
g = {
|
||||
"<leader>g",
|
||||
desc = "Neogit",
|
||||
{
|
||||
"<leader>go",
|
||||
function()
|
||||
neogit.open()
|
||||
end,
|
||||
"Open Neogit"
|
||||
desc = "Neogit open"
|
||||
},
|
||||
c = {
|
||||
function()
|
||||
neogit.open({ "commit" })
|
||||
end,
|
||||
"Open Neogit commit"
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
}
|
||||
|
||||
@@ -68,52 +68,5 @@ return {
|
||||
["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,
|
||||
}
|
||||
|
||||
@@ -6,33 +6,6 @@ return {
|
||||
|
||||
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({
|
||||
enabled = false,
|
||||
stages = "fade_in_slide_out",
|
||||
|
||||
Reference in New Issue
Block a user