From 8834f8cb341beb8212196a53cdf8de09a7d6d5d3 Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Mon, 6 Nov 2023 21:27:48 +0100 Subject: nvim: Add some matchpairs and netrw settings --- .config/nvim/lua/mango/set.lua | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to '.config') diff --git a/.config/nvim/lua/mango/set.lua b/.config/nvim/lua/mango/set.lua index 5659345..6912bce 100644 --- a/.config/nvim/lua/mango/set.lua +++ b/.config/nvim/lua/mango/set.lua @@ -59,6 +59,11 @@ api.nvim_create_autocmd('FocusGained', { -- This has to be done to enable linenumbers in netrw g.netrw_bufsettings = 'noma nomod nu nobl nowrap ro' - -opt.matchpairs:append('‘:’') -opt.matchpairs:append('“:”') +-- Allow for jumping between these pairs with % +o.matchpairs:append('<:>') +o.matchpairs:append('‘:’') +o.matchpairs:append('“:”') + +-- Disable the netrw banner +g.netrw_banner = 0 +g.netrw_list_hide = [[^\(\.\|\.\.\)/\?$]] -- cgit v1.2.3