From 79c2cce01ed2f11606c72de75675b748b8ff2b2a Mon Sep 17 00:00:00 2001 From: xengineering Date: Tue, 27 Feb 2024 16:42:35 +0100 Subject: nvim: Configure fuzzy finder --- nvim/init.lua | 7 +++++++ 1 file changed, 7 insertions(+) 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', 'ff', builtin.find_files, {}) +vim.keymap.set('n', 'fg', builtin.live_grep, {}) +vim.keymap.set('n', 'fb', builtin.buffers, {}) +vim.keymap.set('n', 'fh', builtin.help_tags, {}) -- cgit v1.2.3-70-g09d2