From 5f4bf43da27cbe337564a3f041373fe5669ba8c3 Mon Sep 17 00:00:00 2001 From: Huck Boles Date: Fri, 21 Apr 2023 17:12:32 -0500 Subject: [PATCH] telescope setup --- lua/map.lua | 3 --- lua/plugins.lua | 30 +++++++++++------------------- lua/plugins/telescope.lua | 28 ++++++++++++++++++++++++++++ 3 files changed, 39 insertions(+), 22 deletions(-) create mode 100644 lua/plugins/telescope.lua diff --git a/lua/map.lua b/lua/map.lua index 4974965..bb0c4f5 100644 --- a/lua/map.lua +++ b/lua/map.lua @@ -32,9 +32,6 @@ vim.keymap.set( 'n', '_', 'nohlsearch' ) vim.keymap.set( 'n', '=', 'tabnew ~/.config/nvim/init.lua' ) vim.keymap.set( 'n', 'q', 'Lazy' ) --- autosave -vim.keymap.set( 'i', '', 'update' ) - -- better terminal movement keys vim.keymap.set('t', '', [[]] ) vim.keymap.set('t', '', [[]] ) diff --git a/lua/plugins.lua b/lua/plugins.lua index 8df9510..2e76c6f 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -2,7 +2,7 @@ return { { 'mbbill/undotree', - keys = { { 'u', 'UndotreeToggle', desc = 'Toggle undo tree sidebar' } } + keys = { { 'u', 'UndotreeToggle'} } }, { 'christoomey/vim-tmux-navigator', lazy = false }, @@ -16,26 +16,18 @@ return { { 'lukas-reineke/indent-blankline.nvim', event = 'VeryLazy' }, -- { - -- 'norcalli/nvim-colorizer.lua', - -- lazy = false, - -- config = function() - -- require('colorizer').setup() - -- end + -- 'junegunn/fzf.vim', + -- dependencies = { + -- 'junegunn/fzf' + -- }, + -- keys = { + -- { 'f', 'GFiles' }, + -- { 'F', 'Files' }, + -- { 'b', 'Buffers' }, + -- { '', 'History:' }, + -- }, -- }, - { - 'junegunn/fzf.vim', - dependencies = { - 'junegunn/fzf' - }, - keys = { - { 'f', 'GFiles' }, - { 'F', 'Files' }, - { 'b', 'Buffers' }, - { '', 'History:' }, - }, - }, - { 'akinsho/toggleterm.nvim', keys = { { '', 'ToggleTerm' } }, diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..40245af --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,28 @@ +return { + { + 'nvim-telescope/telescope.nvim', + dependencies = { 'nvim-lua/plenary.nvim' }, + keys = { + { 'f', 'Telescope git_files' }, + { 'F', 'Telescope find_files' }, + { '', 'Telescope live_grep' }, + { 'b', 'Telescope buffers' }, + { '', 'Telescope command_history' }, + { 'D', 'Telescope diagnostics' }, + { 'g', 'Telescope git_commits' }, + }, + config = function() + require('telescope').setup { + defaults = { + layout_strategy = 'horizontal', + layout_config = { + height = 0.9, + width = 0.9, + } + }, + pickers = {}, + extensions = {}, + } + end + }, +} -- 2.45.2