From c959b2112fb4c82b5bfd410df21706455225bd40 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 3 Jul 2024 17:03:56 +0100 Subject: minor additions --- lua/config/formatters.lua | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lua/config/formatters.lua (limited to 'lua/config/formatters.lua') diff --git a/lua/config/formatters.lua b/lua/config/formatters.lua new file mode 100644 index 0000000..fe7d976 --- /dev/null +++ b/lua/config/formatters.lua @@ -0,0 +1,8 @@ +local formatters = require "lvim.lsp.null-ls.formatters" +formatters.setup { + { command = "black", filetypes = {"python"} }, + { command = "latexindent", filetypes = {"tex"} }, +} +lvim.format_on_save.enabled = true +lvim.format_on_save.pattern = { "*.py", "*.tex", } + -- cgit v1.2.3