From 113f3b2ce4aa805faf1c0d12efb308db19fa4c2f Mon Sep 17 00:00:00 2001 From: 0xfa1z Date: Thu, 3 Oct 2024 21:15:46 +0200 Subject: [PATCH] minor changes --- init.lua | 22 +++++++++++++++++----- 1 file changed, 17 insertions(+), 5 deletions(-) diff --git a/init.lua b/init.lua index c79ac931..30b02364 100644 --- a/init.lua +++ b/init.lua @@ -152,6 +152,9 @@ vim.opt.splitbelow = true vim.opt.list = true vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } +vim.opt.shell = 'zsh' +vim.opt.shellcmdflag = '-ic' + -- Preview substitutions live, as you type! vim.opt.inccommand = 'split' @@ -283,6 +286,9 @@ require('lazy').setup({ filters = { dotfiles = false, }, + git = { + ignore = false, + }, } end, }, -- File explorer @@ -439,11 +445,17 @@ require('lazy').setup({ -- You can put your default mappings / updates / etc. in here -- All the info you're looking for is in `:help telescope.setup()` -- - -- defaults = { - -- mappings = { - -- i = { [''] = 'to_fuzzy_refine' }, - -- }, - -- }, + defaults = { + mappings = { + -- i = { [''] = 'to_fuzzy_refine' }, + i = { + [''] = require('telescope.actions').delete_buffer, -- Set Ctrl + d to close buffer in insert mode + }, + n = { + [''] = require('telescope.actions').delete_buffer, -- Set Ctrl + d to close buffer in normal mode + }, + }, + }, -- pickers = {} extensions = { ['ui-select'] = {