From 93f6d76c7634491c3216d60a50dd43559d4ca7a9 Mon Sep 17 00:00:00 2001 From: Daniel Lundin Date: Wed, 6 Nov 2024 00:40:41 +0100 Subject: [PATCH] nvim: use cf for code formatting --- home/common/nvim/lsp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/home/common/nvim/lsp.lua b/home/common/nvim/lsp.lua index 852d1f5..096b556 100644 --- a/home/common/nvim/lsp.lua +++ b/home/common/nvim/lsp.lua @@ -35,7 +35,7 @@ vim.api.nvim_create_autocmd("LspAttach", { vim.keymap.set("n", "r", vim.lsp.buf.rename, opts("Rename Symbol")) vim.keymap.set({ "n", "v" }, "a", vim.lsp.buf.code_action, opts("Code Action")) vim.keymap.set("n", "gr", vim.lsp.buf.references, opts("Buffer References")) - vim.keymap.set("n", "f", function() + vim.keymap.set("n", "cf", function() vim.lsp.buf.format({ async = true }) end, opts("Format Buffer")) end,