diff options
author | Juan J. Martinez <jjm@usebox.net> | 2022-11-15 07:53:39 +0000 |
---|---|---|
committer | Juan J. Martinez <jjm@usebox.net> | 2022-11-15 07:53:39 +0000 |
commit | 82d0659f276418f69a2b4b11775600afaf139c9e (patch) | |
tree | 1e99becb0ac1cceff4cf262f45964c8e8960a908 | |
parent | 98c5e3ac60373a323e6b06f2b00faf00af3d8546 (diff) | |
download | dotnvim-82d0659f276418f69a2b4b11775600afaf139c9e.tar.gz dotnvim-82d0659f276418f69a2b4b11775600afaf139c9e.zip |
formatting is deprecated, long live format
-rw-r--r-- | lsp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 = "ℹ️ " } |