from-scratch rewrite #1
							
								
								
									
										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