mirror of
				https://github.com/tiyn/tidy.nvim.git
				synced 2025-10-30 18:51:23 +01:00 
			
		
		
		
	Merge pull request #12 from saccarosium/main
feat: don't run if editorconfig is detected
This commit is contained in:
		| @@ -60,7 +60,7 @@ function M.setup(opts) | ||||
| 	vim.api.nvim_create_autocmd("BufWritePre", { | ||||
|     group = tidy_grp, | ||||
|     callback = function() | ||||
|       if not M.enabled or is_excluded_ft(opts) then | ||||
|       if not M.enabled or is_excluded_ft(opts) or not vim.tbl_isempty(vim.b.editorconfig) then | ||||
|         return false | ||||
|       end | ||||
|  | ||||
|   | ||||
		Reference in New Issue
	
	Block a user