update and use flakes for everything because I broke it with random changes from nixpkgs and I dont like that
This commit is contained in:
parent
01cc9ecaa4
commit
76504a2fd5
5 changed files with 958 additions and 93 deletions
|
@ -1,32 +1,29 @@
|
|||
return {
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 250
|
||||
end,
|
||||
opts = {
|
||||
window = {
|
||||
border = "single",
|
||||
winblend = 10,
|
||||
},
|
||||
},
|
||||
config = function(_, opts)
|
||||
local wk = require("which-key")
|
||||
wk.setup(opts)
|
||||
wk.register({
|
||||
["<leader>b"] = { name = "Buffers", mode = { "n", "x", "v" } },
|
||||
["<leader>t"] = { name = "Tabs", mode = { "n", "x", "v" } },
|
||||
["<leader>,"] = { name = "Miscellaneous Tools", mode = { "n", "x", "v" } },
|
||||
-- ["<leader>c"] = { name = "Copilot" },
|
||||
["<leader>f"] = { name = "Find [Telescope]", mode = { "n", "x", "v" } },
|
||||
-- ["<leader>fs"] = { name = "Find in Scratches [Telescope]" },
|
||||
["<leader>g"] = { name = "Git", mode = { "n", "x", "v" } },
|
||||
["<leader>l"] = { name = "LSP", mode = { "n", "x", "v" } },
|
||||
["<leader>lf"] = { name = "LSP Find", mode = { "n", "x", "v" } },
|
||||
-- ["<leader>Q"] = { name = "+Q Quit and remove session" },
|
||||
-- ["<leader>s"] = { name = "Scratch Files" },
|
||||
-- ["<leader>x"] = { name = "Generative AI, Ollama" },
|
||||
})
|
||||
end,
|
||||
"folke/which-key.nvim",
|
||||
event = "VeryLazy",
|
||||
init = function()
|
||||
vim.o.timeout = true
|
||||
vim.o.timeoutlen = 250
|
||||
end,
|
||||
opts = {
|
||||
preset = "helix",
|
||||
win = {
|
||||
wo = {
|
||||
winblend = 8,
|
||||
},
|
||||
},
|
||||
spec = {
|
||||
{
|
||||
mode = { "n", "v", "x" },
|
||||
{ "<leader>,", group = "Miscellaneous Tools" },
|
||||
{ "<leader>b", group = "Buffers" },
|
||||
{ "<leader>f", group = "Find [Telescope]" },
|
||||
{ "<leader>g", group = "Git" },
|
||||
{ "<leader>l", group = "LSP" },
|
||||
{ "<leader>lf", group = "LSP Find" },
|
||||
{ "<leader>t", group = "Tabs" },
|
||||
},
|
||||
},
|
||||
},
|
||||
config = true,
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue