From caa187ca9c3682b147c56df14c6c612ea310a161 Mon Sep 17 00:00:00 2001 From: Amanda Graven Date: Fri, 17 Mar 2023 10:37:54 +0100 Subject: [PATCH] Nicer fillchars config, open fugitive in tab mapping --- init.lua | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/init.lua b/init.lua index bf7e1a5..5719218 100644 --- a/init.lua +++ b/init.lua @@ -45,6 +45,10 @@ opt.listchars = { -- Symbols for whitespace chars when 'list' is ena trail = '-', nbsp = '+' } +opt.fillchars = { -- Characters to fill certain types of empty space with + diff = ' ', + fold = ' ', +} o.tabstop = 4 -- A physical tab is 4 characters wide o.shiftwidth = 4 -- A unit of indentention is 4 levels wide @@ -412,15 +416,16 @@ require'packer'.startup(function(use) } use {'sindrets/diffview.nvim', config = function() require'diffview'.setup { + -- Use nicer highlighting for diffs enhanced_diff_hl = true, } - vim.opt.fillchars:append({diff = ' '}) end} use {'stevearc/dressing.nvim', config = function() vim.cmd'highlight link FloatTitle TelescopeBorder' require'dressing'.setup { input = { win_options = { + -- Reuse telescope's highlights for windows made by dressing winhighlight = 'NormalFloat:TelescopeNormal,FloatBorder:TelescopeBorder' } }, @@ -610,7 +615,8 @@ require'fidget'.setup {} ---- fugitive ---- -vim.keymap.set('n', 'g', 'vert Git', {desc = 'Git information'}) +vim.keymap.set('n', 'g', 'vert Git', {desc = 'Git status'}) +vim.keymap.set('n', 'G', 'tab Git', {desc = 'Git status (new tab)'}) ---- gitsigns ----