update deprecated names - Commit 459f40fb - AstroNvim_user
| skipped 11 lines |
12 | 12 | | null_ls.builtins.diagnostics.shellcheck, |
13 | 13 | | }, |
14 | 14 | | on_attach = function(client) |
15 | | - | if client.resolved_capabilities.document_formatting then |
| 15 | + | if client.server_capabilities.documentFormattingProvider then |
16 | 16 | | vim.api.nvim_create_autocmd("BufWritePre", { |
17 | 17 | | desc = "Auto format before save", |
18 | 18 | | pattern = "<buffer>", |
19 | | - | callback = function() vim.lsp.buf.formatting_sync() end, |
| 19 | + | callback = function() vim.lsp.buf.format() end, |
20 | 20 | | }) |
21 | 21 | | end |
22 | 22 | | end, |
| skipped 2 lines |
1 | | - | return { skip_prompts = true } |
| 1 | + | return { skip_prompts = true, branch = "neovim-0.8" } |
2 | 2 | | |
Page is in error, reload to recover