summaryrefslogtreecommitdiff
path: root/.config/nvim/after/plugin
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/after/plugin')
-rw-r--r--.config/nvim/after/plugin/netrw.lua3
-rw-r--r--.config/nvim/after/plugin/netrw.vim13
2 files changed, 3 insertions, 13 deletions
diff --git a/.config/nvim/after/plugin/netrw.lua b/.config/nvim/after/plugin/netrw.lua
new file mode 100644
index 0000000..79327a1
--- /dev/null
+++ b/.config/nvim/after/plugin/netrw.lua
@@ -0,0 +1,3 @@
+vim.g.netrw_banner = 0
+vim.g.netrw_bufsettings = 'noma nomod nu nobl nowrap ro' -- Enabled line-numbers
+vim.g.netrw_list_hide = [[^\(\.\|\.\.\)/\?$,.*\.o$]]
diff --git a/.config/nvim/after/plugin/netrw.vim b/.config/nvim/after/plugin/netrw.vim
deleted file mode 100644
index f9e0f9a..0000000
--- a/.config/nvim/after/plugin/netrw.vim
+++ /dev/null
@@ -1,13 +0,0 @@
-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$'