2024-01-16 18:32:22 -06:00
|
|
|
-- Telescope
|
|
|
|
local builtin = require('telescope.builtin')
|
|
|
|
vim.keymap.set('n', '<leader>pf', builtin.find_files, {})
|
|
|
|
vim.keymap.set('n', '<C-p>', builtin.git_files, {})
|
|
|
|
vim.keymap.set('n', '<leader>ps', function()
|
|
|
|
builtin.grep_string({ search = vim.fn.input("Grep > ") })
|
|
|
|
end)
|
|
|
|
|
2024-02-14 18:47:42 -06:00
|
|
|
-- Harpoon 2
|
|
|
|
local harpoon = require("harpoon")
|
|
|
|
-- REQUIRED
|
|
|
|
harpoon:setup()
|
|
|
|
-- REQUIRED
|
2024-05-15 22:31:38 -05:00
|
|
|
vim.keymap.set("n", "<leader>a", function() harpoon:list():add() end)
|
2024-02-14 18:47:42 -06:00
|
|
|
vim.keymap.set("n", "<C-t>", function() harpoon.ui:toggle_quick_menu(harpoon:list()) end)
|
|
|
|
vim.keymap.set("n", "<C-q>", function() harpoon:list():select(1) end)
|
|
|
|
vim.keymap.set("n", "<C-w>", function() harpoon:list():select(2) end)
|
|
|
|
vim.keymap.set("n", "<C-e>", function() harpoon:list():select(3) end)
|
|
|
|
vim.keymap.set("n", "<C-r>", function() harpoon:list():select(4) end)
|
2024-01-16 18:32:22 -06:00
|
|
|
|
2024-06-07 23:01:48 -05:00
|
|
|
-- Fix annoying binds
|
|
|
|
vim.keymap.del("n", "<C-W><C-D>")
|
|
|
|
vim.keymap.del("n", "<C-W>d")
|
|
|
|
|
2024-01-16 18:32:22 -06:00
|
|
|
-- Zenmode
|
|
|
|
vim.keymap.set("n", "<leader>pz", function()
|
|
|
|
require("zen-mode").toggle({
|
|
|
|
window = {
|
|
|
|
width = 90,
|
|
|
|
}
|
|
|
|
})
|
|
|
|
end)
|