diff options
| author | Your Name <you@example.com> | 2024-07-03 17:03:56 +0100 |
|---|---|---|
| committer | Your Name <you@example.com> | 2024-07-03 17:03:56 +0100 |
| commit | c959b2112fb4c82b5bfd410df21706455225bd40 (patch) | |
| tree | 6774868448d127c2f560827de8e5edbd868a2832 /lua/config/formatters.lua | |
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", } + |
