feat: custom sets and VimBeGood

- added custom sets for line numbers (absolute in Insert, relative in Normal)
- added VimBeGood plugin
This commit is contained in:
Benjamin Rae 2023-11-20 00:07:51 +01:00
parent 1915cea32e
commit 69a47e56d9
4 changed files with 54 additions and 6 deletions

View file

@ -2,4 +2,6 @@
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
return {}
return {
'ThePrimeagen/vim-be-good'
}

12
lua/custom/set.lua Normal file
View file

@ -0,0 +1,12 @@
vim.opt.relativenumber = true
vim.opt.scrolloff = 8
vim.opt.colorcolumn = "80"
vim.api.nvim_exec([[
augroup numbertoggle
autocmd!
autocmd InsertEnter * set norelativenumber
autocmd InsertLeave * set relativenumber
augroup END
]], false)