From 6f0a28e57835362a4a8222ee072563a4ba25e8da Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 6 Dec 2022 22:41:31 +0300 Subject: nvim: change deprecated lsp format --- .config/nvim/lua/plugin_settings.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to '.config/nvim/lua') diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index 48426ba..fbd54ad 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -357,7 +357,7 @@ local on_attach = function(client, bufnr) vim.keymap.set('n', 'rn', vim.lsp.buf.rename, bufopts) vim.keymap.set('n', 'ca', vim.lsp.buf.code_action, bufopts) vim.keymap.set('n', 'gr', vim.lsp.buf.references, bufopts) - vim.keymap.set('n', 'fm', vim.lsp.buf.formatting, bufopts) + vim.keymap.set('n', 'fm', function() vim.lsp.buf.format { async = true } end, bufopts) end -- bring in cmp_nvim_lsp -- cgit v1.2.3-70-g09d2