nvim lazy plugin management part 2
This commit is contained in:
@ -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" },
|
||||
|
||||
Reference in New Issue
Block a user