move personal configs out of init.lua

This commit is contained in:
nathan 2023-04-30 01:33:19 -04:00
parent b8f76b632c
commit a02d314b41
4 changed files with 112 additions and 0 deletions

View file

@ -0,0 +1,12 @@
local numbertoggle = vim.api.nvim_create_augroup("numbertoggle", {clear = true})
vim.api.nvim_create_autocmd({"BufEnter", "FocusGained" ,"InsertLeave"}, {
command = "set relativenumber",
group = my_group
}
)
vim.api.nvim_create_autocmd({"BufLeave", "FocusLost", "InsertEnter"}, {
command = "set norelativenumber",
group = my_group
}
)