From 82d0659f276418f69a2b4b11775600afaf139c9e Mon Sep 17 00:00:00 2001 From: "Juan J. Martinez" Date: Tue, 15 Nov 2022 07:53:39 +0000 Subject: formatting is deprecated, long live format --- lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lsp.lua b/lsp.lua index ac6ca06..451a6cb 100644 --- a/lsp.lua +++ b/lsp.lua @@ -23,7 +23,7 @@ local on_attach = function(client, bufnr) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'rn', 'lua vim.lsp.buf.rename()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'ca', 'lua vim.lsp.buf.code_action()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', 'lua vim.lsp.buf.references()', opts) - vim.api.nvim_buf_set_keymap(bufnr, 'n', 'F', 'lua vim.lsp.buf.formatting()', opts) + vim.api.nvim_buf_set_keymap(bufnr, 'n', 'F', 'lua vim.lsp.buf.format { async = true }', opts) end local signs = { Error = "🔥", Warn = "⚠️ ", Hint = "✨", Info = "ℹ️ " } -- cgit v1.2.3