feat(nvim): idk, lots of changes
This commit is contained in:
		
							
								
								
									
										25
									
								
								nvim/lua/olinpin/plugins/conform.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										25
									
								
								nvim/lua/olinpin/plugins/conform.lua
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,25 @@ | ||||
| return { | ||||
| 	"stevearc/conform.nvim", | ||||
| 	event = 'BufWritePre', -- uncomment for format on save | ||||
| 	opts = { | ||||
| 		lsp_fallback = true, | ||||
|  | ||||
| 		formatters_by_ft = { | ||||
| 			lua = { "stylua" }, | ||||
|  | ||||
| 			javascript = { "prettier" }, | ||||
| 			css = { "prettier" }, | ||||
| 			html = { "prettier" }, | ||||
|  | ||||
| 			sh = { "shfmt" }, | ||||
|  | ||||
| 			go = {"goimports", "gofumpt" }, | ||||
| 		}, | ||||
|  | ||||
| 		format_on_save = { | ||||
| 		  -- These options will be passed to conform.format() | ||||
| 		  timeout_ms = 500, | ||||
| 		  lsp_fallback = true, | ||||
| 		}, | ||||
| 	}, | ||||
| } | ||||
		Reference in New Issue
	
	Block a user