Move code other than requiring modules out of init.lua

This commit is contained in:
2021-11-16 21:50:15 +03:00
parent 73401d5dcc
commit d236deaa63
3 changed files with 31 additions and 31 deletions

View File

@@ -42,3 +42,8 @@ vim.api.nvim_exec([[
autocmd TextYankPost * silent! lua vim.highlight.on_yank{higroup="IncSearch", timeout=700}
augroup end
]], false)
-- Automatically formatting buffer on save
vim.api.nvim_command("autocmd BufWritePre * lua vim.lsp.buf.formatting_sync()")
vim.cmd('command! ToggleBackground lua require("utils").toggleBackground()')