experimental json to types
This commit is contained in:
parent
3a383abe5a
commit
1f58bb91cc
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",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user