diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 1afeab22..a09f4caa 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -4,7 +4,7 @@ map('i', 'jk', '', { desc = 'Exit insert mode' }) -- Clear highlights on search when pressing in normal mode -- See `:help hlsearch` map('n', '', 'nohlsearch') -map('n', '', function() +map('n', 'z', function() print("hey") end, { desc = "Print hey" }) -- Keybinds to make split navigation easier. diff --git a/lua/plugins/plugins.lua b/lua/plugins/plugins.lua index 41652a63..f06b29a4 100644 --- a/lua/plugins/plugins.lua +++ b/lua/plugins/plugins.lua @@ -91,6 +91,17 @@ return { dependencies = { 'nvim-lua/plenary.nvim' }, config = function() require('telescope').setup({}) + local builtin = require 'telescope.builtin' + vim.keymap.set('n', 'fh', builtin.help_tags, { desc = '[F]ind [H]elp' }) + vim.keymap.set('n', 'fk', builtin.keymaps, { desc = '[F]ind [K]eymaps' }) + vim.keymap.set('n', 'ff', builtin.find_files, { desc = '[F]ind [F]iles' }) + vim.keymap.set('n', 'fs', builtin.builtin, { desc = '[F]ind Telescope' }) + vim.keymap.set('n', 'fw', builtin.grep_string, { desc = '[F]ind current [W]ord' }) + vim.keymap.set('n', 'fg', builtin.live_grep, { desc = '[F]ind by [G]rep' }) + vim.keymap.set('n', 'fd', builtin.diagnostics, { desc = '[F]ind [D]iagnostics' }) + vim.keymap.set('n', 'fr', builtin.resume, { desc = '[F]ind [R]esume' }) + vim.keymap.set('n', 'f.', builtin.oldfiles, { desc = '[F]ind Recent Files ("." for repeat)' }) + vim.keymap.set('n', '', builtin.buffers, { desc = '[ ] Find existing buffers' }) end, } }