···1414-- Reserve a space in the gutter
1515vim.opt.signcolumn = 'yes'
16161717-1817local cmp = require('cmp')
19182019cmp.setup({
···4645 end
4746 end,
4847})
4848+4949+vim.api.nvim_create_autocmd("BufWritePre", {
5050+ callback = function()
5151+ local mode = vim.api.nvim_get_mode().mode
5252+ local filetype = vim.bo.filetype
5353+ if vim.bo.modified == true and mode == 'n' then
5454+ vim.cmd('lua vim.lsp.buf.format()')
5555+ else
5656+ end
5757+ end
5858+})