summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-02-27 16:42:35 +0100
committerxengineering <me@xengineering.eu>2024-02-27 16:42:35 +0100
commit79c2cce01ed2f11606c72de75675b748b8ff2b2a (patch)
treee442830ee03caf580bd9b674930c06c65172a88e
parent1c0cc68a5e7255905cb2bbd3d70c08f8fbd2c646 (diff)
downloaddotfiles-79c2cce01ed2f11606c72de75675b748b8ff2b2a.tar
dotfiles-79c2cce01ed2f11606c72de75675b748b8ff2b2a.tar.zst
dotfiles-79c2cce01ed2f11606c72de75675b748b8ff2b2a.zip
nvim: Configure fuzzy finder
-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, {})