···4646 end,
4747})
48484949+-- TODO: Turn this into a convenience function that you can
5050+-- enable or disable on a per-project and per-filetype basis.
4951vim.api.nvim_create_autocmd("BufWritePre", {
5052 callback = function()
5153 local mode = vim.api.nvim_get_mode().mode
5252- local filetype = vim.bo.filetype
5454+ -- local filetype = vim.bo.filetype
5355 if vim.bo.modified == true and mode == 'n' then
5456 vim.cmd('lua vim.lsp.buf.format()')
5557 else