Skip to content

Commit

Permalink
feat(nvim): move keymaps from telescope to fzf
Browse files Browse the repository at this point in the history
  • Loading branch information
fredrikaverpil committed Dec 22, 2024
1 parent a799ab4 commit 434bc8c
Showing 1 changed file with 18 additions and 9 deletions.
27 changes: 18 additions & 9 deletions nvim-fredrik/lua/fredrik/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -408,17 +408,17 @@ function M.setup_telescope_keymaps()
-- end,
-- desc = "[s]earch [g]rep",
-- },
{ '<leader>s"', "<cmd>Telescope registers<cr>", desc = '[s]earch ["]registers' },
{ "<leader>sa", "<cmd>Telescope autocommands<cr>", desc = "[s]earch [a]utocommands" },
{ "<leader>sb", "<cmd>Telescope buffers<CR>", desc = "[s]earch opened [b]uffers" },
{ "<leader>sc", "<cmd>Telescope commands<cr>", desc = "[s]earch [c]ommands" },
-- { '<leader>s"', "<cmd>Telescope registers<cr>", desc = '[s]earch ["]registers' },
-- { "<leader>sa", "<cmd>Telescope autocommands<cr>", desc = "[s]earch [a]utocommands" },
-- { "<leader>sb", "<cmd>Telescope buffers<CR>", desc = "[s]earch opened [b]uffers" },
-- { "<leader>sc", "<cmd>Telescope commands<cr>", desc = "[s]earch [c]ommands" },
{ "<leader>sd", "<cmd>Telescope diagnostics bufnr=0<cr>", desc = "[s]earch [d]ocument diagnostics" },
{ "<leader>sD", "<cmd>Telescope diagnostics<cr>", desc = "[s]earch [D]iagnostics" },
{ "<leader>sh", "<cmd>Telescope help_tags<cr>", desc = "[s]earch [h]elp pages" },
{ "<leader>sH", "<cmd>Telescope highlights<cr>", desc = "[s]earch [H]ighlight groups" },
{ "<leader>sk", "<cmd>Telescope keymaps<cr>", desc = "[s]earch [k]ey maps" },
{ "<leader>sM", "<cmd>Telescope man_pages<cr>", desc = "[s]earch [M]an pages" },
{ "<leader>sm", "<cmd>Telescope marks<cr>", desc = "[s]earch [m]arks" },
-- { "<leader>sh", "<cmd>Telescope help_tags<cr>", desc = "[s]earch [h]elp pages" },
-- { "<leader>sH", "<cmd>Telescope highlights<cr>", desc = "[s]earch [H]ighlight groups" },
-- { "<leader>sk", "<cmd>Telescope keymaps<cr>", desc = "[s]earch [k]ey maps" },
-- { "<leader>sM", "<cmd>Telescope man_pages<cr>", desc = "[s]earch [M]an pages" },
-- { "<leader>sm", "<cmd>Telescope marks<cr>", desc = "[s]earch [m]arks" },
{ "<leader>so", "<cmd>Telescope vim_options<cr>", desc = "[s]earch [o]ptions" },
}
end
Expand All @@ -441,6 +441,15 @@ function M.setup_fzf_keymaps()
end,
desc = "Grep",
},
{ "<leader>s", "<cmd>FzfLua registers<cr>", desc = '[s]earch ["]registers' },
{ "<leader>sh", "<cmd>FzfLua helptags<cr>", desc = "[s]earch [h]elp pages" },
{ "<leader>sa", "<cmd>FzfLua autocmds<cr>", desc = "[s]earch [a]utocommands" },
{ "<leader>sb", "<cmd>FzfLua buffers<CR>", desc = "[s]earch opened [b]uffers" },
{ "<leader>sc", "<cmd>FzfLua commands<cr>", desc = "[s]earch [c]ommands" },
{ "<leader>sH", "<cmd>FzfLua highlights<cr>", desc = "[s]earch [H]ighlight groups" },
{ "<leader>sk", "<cmd>FzfLua keymaps<cr>", desc = "[s]earch [k]ey maps" },
{ "<leader>sM", "<cmd>FzfLua manpages<cr>", desc = "[s]earch [M]an pages" },
{ "<leader>sm", "<cmd>FzfLua marks<cr>", desc = "[s]earch [m]arks" },
}
end

Expand Down

0 comments on commit 434bc8c

Please sign in to comment.