summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/mango/set.lua
diff options
context:
space:
mode:
authorThomas Voss <mail@thomasvoss.com> 2024-02-27 21:52:45 +0100
committerThomas Voss <mail@thomasvoss.com> 2024-02-27 21:52:45 +0100
commit8a93fe76fd2f6436cf1526f2fd5c1598e2859b36 (patch)
tree42e0e6d2f8442eaf34a3d022a6bb1a107e65954a /.config/nvim/lua/mango/set.lua
parent10e7e5cdcd0a9fad266ef1e210587a68e8b951dc (diff)
nvim: Move netrw configuration out of after/
Diffstat (limited to '.config/nvim/lua/mango/set.lua')
-rw-r--r--.config/nvim/lua/mango/set.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/nvim/lua/mango/set.lua b/.config/nvim/lua/mango/set.lua
index 7d024a6..a8979bb 100644
--- a/.config/nvim/lua/mango/set.lua
+++ b/.config/nvim/lua/mango/set.lua
@@ -39,6 +39,11 @@ o.isfname:append('@-@')
o.splitright = true
o.splitbelow = true
+-- Better settings for netrw
+vim.g.netrw_banner = 0
+vim.g.netrw_bufsettings = 'noma nomod nu nobl nowrap ro' -- Enable line-numbers
+vim.g.netrw_list_hide = [[^\(\.\|\.\.\)/\?$,^__pycache__/\?,.*\.\(o\|pyc\)$]]
+
-- Disable auto commenting
api.nvim_create_autocmd('BufEnter', {
callback = function()