move personal configs out of init.lua
This commit is contained in:
parent
b8f76b632c
commit
a02d314b41
4 changed files with 112 additions and 0 deletions
12
lua/custom/plugins/relative_numbering.lua
Normal file
12
lua/custom/plugins/relative_numbering.lua
Normal 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
|
||||
}
|
||||
)
|
||||
Loading…
Add table
Add a link
Reference in a new issue