Skip to content

Commit

Permalink
add telescope keybindings
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesChung committed May 23, 2024
1 parent 80f374d commit a00746e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions lua/config/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,13 @@ vim.api.nvim_set_keymap("v", "˚", ":m '<-2<CR>gv=gv", { noremap = true })
-- Remap space to be leader rather than the default backslash key
vim.api.nvim_set_keymap("n", "<Space>", "<Leader>", { noremap = true })

-- Set nvim-telescope/telescope.nvim keybindings
local builtin = require('telescope.builtin')
vim.keymap.set('n', '<leader>tf', builtin.find_files, {})
vim.keymap.set('n', '<leader>tg', builtin.live_grep, {})
vim.keymap.set('n', '<leader>tb', builtin.buffers, {})
vim.keymap.set('n', '<leader>th', builtin.help_tags, {})

-- Set folke/trouble.nvim toggle keybinding
vim.api.nvim_set_keymap("n", "<leader>tt", "<Cmd>TroubleToggle<CR>", { noremap = true, silent = true })

Expand Down

0 comments on commit a00746e

Please sign in to comment.