Nicer fillchars config, open fugitive in tab mapping

main
Amanda Graven 2023-03-17 10:37:54 +01:00
parent 3346555da3
commit caa187ca9c
No known key found for this signature in database
GPG Key ID: 79A68E63058F3BA1
1 changed files with 8 additions and 2 deletions

View File

@ -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', '<Leader>g', '<Cmd>vert Git<CR>', {desc = 'Git information'})
vim.keymap.set('n', '<Leader>g', '<Cmd>vert Git<CR>', {desc = 'Git status'})
vim.keymap.set('n', '<Leader>G', '<Cmd>tab Git<CR>', {desc = 'Git status (new tab)'})
---- gitsigns ----