From e9aec353ce8807b204b95638d6f5a50d65706dbe Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 5 Oct 2023 14:43:07 +0200 Subject: nvim: Enable line numbers in netrw --- .config/nvim/lua/mango/set.lua | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/.config/nvim/lua/mango/set.lua b/.config/nvim/lua/mango/set.lua index 617067e..ddb49dc 100644 --- a/.config/nvim/lua/mango/set.lua +++ b/.config/nvim/lua/mango/set.lua @@ -1,6 +1,7 @@ local lib = require('mango.lib') local api = vim.api local opt = vim.opt +local glo = vim.g local augroup = api.nvim_create_augroup('Mango', { clear = true }) @@ -55,3 +56,6 @@ api.nvim_create_autocmd('BufWinEnter', { command = 'normal zR', group = augroup, }) + +-- This has to be done to enable linenumbers in netrw +glo.netrw_bufsettings = 'noma nomod nu nobl nowrap ro' -- cgit v1.2.3