diff options
| author | Horror Proton <107091537+horror-proton@users.noreply.github.com> | 2022-10-02 08:22:10 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-10-02 08:22:10 +0800 |
| commit | 03a09b930b6efee91844ccffe96cb3fcc01da385 (patch) | |
| tree | 7b88e3270bd7cad221fa0dd46c8f4073e77600ba /doc/lspconfig.txt | |
| parent | docs: update server_configurations.md (diff) | |
| download | nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar.gz nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar.bz2 nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar.lz nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar.xz nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.tar.zst nvim-lspconfig-03a09b930b6efee91844ccffe96cb3fcc01da385.zip | |
docs: `vim.lsp.buf.formatting()` is deprecated (#2166)
Diffstat (limited to 'doc/lspconfig.txt')
| -rw-r--r-- | doc/lspconfig.txt | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/lspconfig.txt b/doc/lspconfig.txt index 0c999678..d43ca15e 100644 --- a/doc/lspconfig.txt +++ b/doc/lspconfig.txt @@ -509,7 +509,7 @@ attached to a given buffer. vim.keymap.set('n', '<space>rn', vim.lsp.buf.rename, bufopts) vim.keymap.set('n', '<space>ca', vim.lsp.buf.code_action, bufopts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) - vim.keymap.set('n', '<space>f', vim.lsp.buf.formatting, bufopts) + vim.keymap.set('n', '<space>f', function() vim.lsp.buf.format { async = true } end, bufopts) end local lsp_flags = { |
