From e7dccf3053751faea2ef68fdd313ac7cb94e1936 Mon Sep 17 00:00:00 2001 From: "Christoph J. Scherr" Date: Mon, 24 Jun 2024 15:14:54 +0200 Subject: [PATCH] add other format command with just nvim --- lua/custom/mappings.lua | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/lua/custom/mappings.lua b/lua/custom/mappings.lua index a783009..9d35e04 100644 --- a/lua/custom/mappings.lua +++ b/lua/custom/mappings.lua @@ -421,6 +421,15 @@ M.edit = { "format buffer", }, + -- format with nvim + ["fF"] = { + function() + vim.lsp.buf.format() + -- require("conform").format() + end, + "format buffer (no plugin)", + }, + -- remove trailing whitespace ["fw"] = { function()