From 0c6771a385e3f2e4a9f1e5ae80eb7615e4fa99e0 Mon Sep 17 00:00:00 2001 From: christianchiarulli Date: Tue, 6 Jul 2021 22:55:11 -0400 Subject: you can now toggle format on and off on the fly! --- init.lua | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) (limited to 'init.lua') diff --git a/init.lua b/init.lua index 95ef162a..2ea5c89a 100644 --- a/init.lua +++ b/init.lua @@ -7,6 +7,7 @@ require "lv-utils" require "lv-galaxyline" require "lv-treesitter" require "lv-which-key" +require "lv-neoformat" require "lsp" if O.lang.emmet.active then require "lsp.emmet-ls" @@ -14,16 +15,3 @@ end if O.lang.tailwindcss.active then require "lsp.tailwindcss-ls" end - --- autoformat -if O.format_on_save then - require("lv-utils").define_augroups { - autoformat = { - { - "BufWritePre", - "*", - [[try | undojoin | Neoformat | catch /^Vim\%((\a\+)\)\=:E790/ | finally | silent Neoformat | endtry]], - }, - }, - } -end -- cgit v1.2.3