diff options
Diffstat (limited to 'lua/config/formatters.lua')
| -rw-r--r-- | lua/config/formatters.lua | 8 |
1 files changed, 8 insertions, 0 deletions
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", } + |
