From 24a51b2e53a0a9f7f215a311d7241b5339a84989 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Wed, 31 Jan 2024 09:08:01 -0500 Subject: [PATCH] Update telescope settings --- init.vim | 5 +++-- lua/telescope_settings.lua | 12 ++++-------- 2 files changed, 7 insertions(+), 10 deletions(-) diff --git a/init.vim b/init.vim index 1e282a2..2ecb506 100644 --- a/init.vim +++ b/init.vim @@ -8,7 +8,7 @@ Plug 'Vigemus/iron.nvim' Plug 'tpope/vim-markdown' Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' -Plug 'kien/ctrlp.vim' +"Plug 'kien/ctrlp.vim' Plug 'morhetz/gruvbox' Plug 'skywind3000/asyncrun.vim' Plug 'norcalli/nvim-colorizer.lua' @@ -169,8 +169,9 @@ set termguicolors lua require'colorizer'.setup() "Set up telescope +lua require('telescope_settings') nnoremap Telescope live_grep -nnoremap Telescope find_files +nnoremap Telescope find_files shorten_path=true " "Neomutt settings autocmd BufNewFile,BufRead /tmp/neomutt* set noautoindent filetype=mail wm=0 tw=0 nonumber nolist diff --git a/lua/telescope_settings.lua b/lua/telescope_settings.lua index e7987d3..bbdc175 100644 --- a/lua/telescope_settings.lua +++ b/lua/telescope_settings.lua @@ -1,9 +1,5 @@ -local actions = require('telescope.actions')require('telescope').setup{ - defaults = { - mappings = { - n = { - ["q"] = actions.close - }, - }, - } +require('telescope').setup{ + defaults = { + path_display={"smart"} + } }