···6767 -- configure format on save TODO: this seem not to work yet, at least for python
6868 on_attach = function(current_client, bufnr)
6969 local filetype = vim.bo[bufnr].filetype
7070- if current_client.supports_method("textDocument/formatting")
7070+ if current_client:supports_method("textDocument/formatting")
7171 -- and filetype == 'python' --only python formatin on save
7272 then
7373 vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr })