summaryrefslogtreecommitdiff
path: root/.config/nvim/after/plugin/netrw.vim
blob: f9e0f9a33a8619602edfbd6afac8f6604c2f9c1f (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
function! s:gitignore_files()
	silent! !git rev-parse --is-inside-work-tree
	if v:shell_error == 0
		return netrw_gitignore#Hide()
	endif
	return '^$' " Shouldn’t match anything
endfunction

let g:netrw_banner = 0
let g:netrw_bufsettings = 'noma nomod nu nobl nowrap ro' " Enables line-numbers
let g:netrw_list_hide = s:gitignore_files()
			\ .. ',^\(\.\|\.\.\)/\?$'
			\ .. ',.*\.o$'