summaryrefslogtreecommitdiffstats
path: root/nvim/lua/user/telescope.lua
diff options
context:
space:
mode:
authorMatthew Lemon <y@yulqen.org>2023-05-13 21:38:36 +0100
committerMatthew Lemon <y@yulqen.org>2023-05-13 21:38:36 +0100
commit0872d52e7127434a1a0cddaa30510f42a1bf22c1 (patch)
tree0300a741c9812d4ade1ec7ffd55b15a66e17684b /nvim/lua/user/telescope.lua
parente6fd7b60e1d6e7869baed548ffbd620d8d3e32b9 (diff)
Adds a neovim from scratch neovim scratch
Diffstat (limited to '')
-rw-r--r--nvim/lua/user/telescope.lua33
1 files changed, 33 insertions, 0 deletions
diff --git a/nvim/lua/user/telescope.lua b/nvim/lua/user/telescope.lua
new file mode 100644
index 0000000..b6b5a1d
--- /dev/null
+++ b/nvim/lua/user/telescope.lua
@@ -0,0 +1,33 @@
+local M = {
+ "nvim-telescope/telescope.nvim",
+ commit = "203bf5609137600d73e8ed82703d6b0e320a5f36",
+ event = "Bufenter",
+ cmd = { "Telescope" },
+ dependencies = {
+ {
+ "ahmedkhalf/project.nvim",
+ commit = "685bc8e3890d2feb07ccf919522c97f7d33b94e4",
+ },
+ },
+}
+
+local actions = require "telescope.actions"
+
+M.opts = {
+ defaults = {
+ prompt_prefix = " ",
+ selection_caret = " ",
+ path_display = { "smart" },
+ file_ignore_patterns = { ".git/", "node_modules" },
+ mappings = {
+ i = {
+ ["<Down>"] = actions.move_selection_next,
+ ["<Up>"] = actions.move_selection_previous,
+ ["<C-j>"] = actions.move_selection_next,
+ ["<C-k>"] = actions.move_selection_previous,
+ },
+ },
+ },
+}
+
+return M