summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--nvim/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua
index fe10cb3..2cbde67 100644
--- a/nvim/init.lua
+++ b/nvim/init.lua
@@ -56,3 +56,10 @@ require'lspconfig'.clangd.setup{
}
require("luasnip.loaders.from_vscode").lazy_load()
+
+vim.g.mapleader = ' '
+local builtin = require('telescope.builtin')
+vim.keymap.set('n', '<leader>ff', builtin.find_files, {})
+vim.keymap.set('n', '<leader>fg', builtin.live_grep, {})
+vim.keymap.set('n', '<leader>fb', builtin.buffers, {})
+vim.keymap.set('n', '<leader>fh', builtin.help_tags, {})