Browse Source

fix(autocmds): use the `BufEnter` event when not using relative numbers

my-config
NTBBloodbath 3 years ago
parent
commit
e7afe2902b
No known key found for this signature in database GPG Key ID: 18D6730BC846AAC5
  1. 4
      lua/doom/extras/autocmds/init.lua

4
lua/doom/extras/autocmds/init.lua

@ -1,7 +1,7 @@
---[[---------------------------------------]]---
-- autocmds - Doom Nvim Autocmds --
-- Author: NTBBloodbath --
-- License: GPLv2 --
-- License: GPLv2 --
---[[---------------------------------------]]---
local utils = require("doom.utils")
@ -40,7 +40,7 @@ if config.doom.relative_num then
})
else
table.insert(autocmds["doom_core"], {
"BufLeave,WinEnter",
"BufEnter,WinEnter",
"*",
"if &nu | set nornu | endif",
})

Loading…
Cancel
Save