nvim lazy plugin management part 2

This commit is contained in:
2025-07-15 16:25:52 +05:00
parent 0d1b98f65e
commit 386d50d7ce
21 changed files with 318 additions and 347 deletions

View File

@ -72,8 +72,10 @@ return {
filetypes = { "TelescopePrompt" },
},
},
config = function()
config = function(_, opts)
local which_key = require("which-key")
which_key.setup(opts)
which_key.add({
{ "<leader>", group = "Hotkeys" },
{ "<leader>?", ":WhichKey <CR>", desc = "Show keybindings" },
@ -82,14 +84,6 @@ return {
{ "<leader>F", ":lua vim.lsp.buf.format() <CR>", desc = "Format file" },
})
-- which_key.add({
-- { "<leader>f", group = "Find" },
-- { "<leader>ff", "<cmd>lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({ previewer = false }))<cr>", desc = "Find file" },
-- { "<leader>fw", "<cmd>lua require'telescope.builtin'.live_grep()<cr>", desc = "Grep file" },
-- { "<leader>fb", "<cmd>lua require'telescope.builtin'.buffers()<cr>", desc = "Find buffer" },
-- { "<leader>fh", "<cmd>lua require'telescope.builtin'.resume()<cr>", desc = "Resume last search" },
-- })
which_key.add({
{ "<leader>g", group = "Git" },
{ "<leader>gb", toggle_gitsigns_blame, desc = "Toggle git blame view" },