experimental json to types
This commit is contained in:
		
							
								
								
									
										17
									
								
								nvim/lua/plugins/jsontotypes.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								nvim/lua/plugins/jsontotypes.lua
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,17 @@
 | 
				
			|||||||
 | 
					return {
 | 
				
			||||||
 | 
					  "Redoxahmii/json-to-types.nvim",
 | 
				
			||||||
 | 
					  build = "sh install.sh npm", -- Replace `npm` with your preferred package manager (e.g., yarn, pnpm).
 | 
				
			||||||
 | 
					  ft = "json",
 | 
				
			||||||
 | 
					  keys = {
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "<leader>cU",
 | 
				
			||||||
 | 
					      "<CMD>ConvertJSONtoLang typescript<CR>",
 | 
				
			||||||
 | 
					      desc = "Convert JSON to TS",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					    {
 | 
				
			||||||
 | 
					      "<leader>ct",
 | 
				
			||||||
 | 
					      "<CMD>ConvertJSONtoLangBuffer typescript<CR>",
 | 
				
			||||||
 | 
					      desc = "Convert JSON to TS Buffer",
 | 
				
			||||||
 | 
					    },
 | 
				
			||||||
 | 
					  },
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
		Reference in New Issue
	
	Block a user