aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuan J. Martinez <jjm@usebox.net>2022-11-15 07:53:39 +0000
committerJuan J. Martinez <jjm@usebox.net>2022-11-15 07:53:39 +0000
commit82d0659f276418f69a2b4b11775600afaf139c9e (patch)
tree1e99becb0ac1cceff4cf262f45964c8e8960a908
parent98c5e3ac60373a323e6b06f2b00faf00af3d8546 (diff)
downloaddotnvim-82d0659f276418f69a2b4b11775600afaf139c9e.tar.gz
dotnvim-82d0659f276418f69a2b4b11775600afaf139c9e.zip
formatting is deprecated, long live format
-rw-r--r--lsp.lua2
1 files changed, 1 insertions, 1 deletions
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', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>ca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
- vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>F', '<cmd>lua vim.lsp.buf.formatting()<CR>', opts)
+ vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>F', '<cmd>lua vim.lsp.buf.format { async = true }<CR>', opts)
end
local signs = { Error = "🔥", Warn = "⚠️ ", Hint = "✨", Info = "ℹ️ " }