Install efm lsp and use lua-format on all files

This commit is contained in:
2021-11-21 12:37:26 +03:00
parent cb8c78723b
commit 05606ee54b
9 changed files with 83 additions and 101 deletions

View File

@@ -32,6 +32,6 @@ vim.api.nvim_exec([[
]], false)
-- Automatically formatting buffer on save
vim.api.nvim_command("autocmd BufWritePre * lua vim.lsp.buf.formatting_sync()")
vim.api.nvim_command("autocmd BufWritePre * lua vim.lsp.buf.formatting_sync(nil, 100)")
vim.cmd('command! ToggleBackground lua require("utils").toggleBackground()')