Browse Source
fix(autocmds): use the `BufEnter` event when not using relative numbers
my-config
NTBBloodbath
3 years ago
No known key found for this signature in database
GPG Key ID: 18D6730BC846AAC5
1 changed files with
2 additions and
2 deletions
-
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", |
|
|
|
}) |
|
|
|