From fb3c96d50d625db725940625120012c75afc17f6 Mon Sep 17 00:00:00 2001 From: "Gabriel A. Giovanini" Date: Fri, 14 Jun 2024 19:06:50 +0200 Subject: feat: Initial commit --- lua/gabrielgio/telescope.lua | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 lua/gabrielgio/telescope.lua (limited to 'lua/gabrielgio/telescope.lua') diff --git a/lua/gabrielgio/telescope.lua b/lua/gabrielgio/telescope.lua new file mode 100644 index 0000000..257a42e --- /dev/null +++ b/lua/gabrielgio/telescope.lua @@ -0,0 +1,30 @@ +local key = require("gabrielgio.key") +local builtins = require("telescope.builtin") +local telescope = require("telescope") + +telescope.setup{ + defaults = { + file_ignore_patterns = { + "vendor/", + ".git/" + }, + vimgrep_arguments = { + "rg", + "--color=never", + "--no-heading", + "--with-filename", + "--line-number", + "--column", + "--smart-case", + "--hidden" + } + }, +} + +telescope.load_extension("file_browser") + +key.nnoremap("ff", builtins.find_files) +key.nnoremap("fs", builtins.live_grep) +key.nnoremap("fd", ":Telescope buffers") +key.nnoremap("n", ":Telescope file_browser") +key.nnoremap("m", ":Telescope file_browser path=%:p:h select_buffer=true") -- cgit v1.2.3