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