Moving to individual plugin files for lazy

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-09-03 13:36:05 +02:00
parent e9fad30daf
commit 93d665867b
37 changed files with 1130 additions and 1205 deletions

View File

@@ -1,48 +1,50 @@
local status, whichkey = pcall(require, "which-key")
if not status then
return
end
return {
"folke/which-key.nvim",
config = function()
local whichkey = require("which-key")
whichkey.setup({
key_labels = {
["<leader>"] = "SPC",
["<space>"] = "SPC",
["<cr>"] = "RET",
["<CR>"] = "RET",
["<Tab>"] = "TAB",
},
icons = {
breadcrumb = "»",
separator = "",
group = "",
},
})
whichkey.setup({
key_labels = {
["<leader>"] = "SPC",
["<space>"] = "SPC",
["<cr>"] = "RET",
["<CR>"] = "RET",
["<Tab>"] = "TAB",
},
icons = {
breadcrumb = "»",
separator = "",
group = "",
},
})
whichkey.register({
["<leader>"] = {
w = {
name = "window",
},
f = {
name = "find",
},
b = {
name = "buffer",
},
g = {
name = "git",
},
l = {
name = "lazy",
},
t = {
name = "toggle",
},
v = {
name = "lsp",
},
h = {
name = "theme",
},
},
})
whichkey.register({
["<leader>"] = {
w = {
name = "window",
},
f = {
name = "find",
},
b = {
name = "buffer",
},
g = {
name = "git",
},
l = {
name = "lazy",
},
t = {
name = "toggle",
},
v = {
name = "lsp",
},
h = {
name = "theme",
},
},
})
end,
}