diff options
author | nathan11 <thenathansmithsmith@gmail.com> | 2023-07-25 00:52:07 -0600 |
---|---|---|
committer | nathan11 <thenathansmithsmith@gmail.com> | 2023-07-25 00:52:07 -0600 |
commit | 0f8c62f2d18fd86e2bad01a33e5e9beb4e2ef77b (patch) | |
tree | e098cecfe770af08bd77eda320f8a0260c3c68c6 /lua/config_telescope.lua |
first commit
Diffstat (limited to 'lua/config_telescope.lua')
-rw-r--r-- | lua/config_telescope.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/config_telescope.lua b/lua/config_telescope.lua new file mode 100644 index 0000000..d55e30a --- /dev/null +++ b/lua/config_telescope.lua @@ -0,0 +1,24 @@ +local actions = require("telescope.actions") +local constants = require("constants") + +require('telescope').setup{ + defaults = { + mappings = { + i = { + [constants.next_key] = actions.move_selection_next, + [constants.previous_key] = actions.move_selection_previous, + [constants.close_key] = actions.close, + ["<A-x>"] = actions.select_horizontal, + ["<A-v>"] = actions.select_vertical, + ["<A-t>"] = actions.select_tab + } + } + }, +} + +-- Some key binds. +vim.keymap.set({"n", "i"}, "<leader>f", ":Telescope find_files hidden=true<CR>") +vim.keymap.set({"n", "i"}, "<leader>g", ":Telescope live_grep<CR>") +vim.keymap.set({"n", "i"}, "<leader>h", ":Telescope help_tags<CR>") +vim.keymap.set({"n", "i"}, "<leader>m", ":Telescope marks<CR>") +vim.keymap.set({"n", "i"}, "<leader>p", ":Telescope man_pages<CR>") |