mirror of
				https://github.com/tiyn/dotfiles.git
				synced 2025-10-31 12:31:15 +01:00 
			
		
		
		
	nvim: added latexindent with 2 space indent
This commit is contained in:
		| @@ -1,4 +1,5 @@ | ||||
| Bonitur | ||||
| Königinnensubstanz | ||||
| Magazinbeute | ||||
| Magazinbeuten | ||||
| Pollenhose | ||||
|   | ||||
| @@ -2,11 +2,17 @@ return { | ||||
|   -- improved refactoring | ||||
|   { | ||||
|     'stevearc/conform.nvim', | ||||
|     opts = { | ||||
|     config = function() | ||||
|       require("conform").setup({ | ||||
|         formatters_by_ft = { | ||||
|           python = { "isort", "black" }, | ||||
|           markdown = { "mdformat" }, | ||||
|           tex = { "latexindent" }, | ||||
|         } | ||||
|       }) | ||||
|       require("conform").formatters.latexindent = { | ||||
|         prepend_args = { "-y=defaultIndent: '  '" }, | ||||
|       } | ||||
|     end | ||||
|   } | ||||
| } | ||||
|   | ||||
| @@ -13,6 +13,8 @@ return { | ||||
|               require("null-ls").builtins.formatting.black, | ||||
|               -- markdown | ||||
|               require("null-ls").builtins.formatting.mdformat, | ||||
|               -- latex | ||||
|               require("null-ls").builtins.formatting.latexindent, | ||||
|             } | ||||
|           }) | ||||
|         end | ||||
| @@ -22,7 +24,10 @@ return { | ||||
|         opts = { | ||||
|           automatic_installation = true, | ||||
|           ensure_installed = { | ||||
|             "isort", "black", "mdformat" | ||||
|             "black", | ||||
|             "isort", | ||||
|             "latexindent", | ||||
|             "mdformat", | ||||
|           } | ||||
|         } | ||||
|       } | ||||
|   | ||||
		Reference in New Issue
	
	Block a user