From e9ba36422364f6c22863db4f85e92d1cbeef621f Mon Sep 17 00:00:00 2001 From: fm39hz-laptop Date: Thu, 30 May 2024 11:45:23 +0700 Subject: [PATCH] feat: add import cost --- lazy-lock.json | 1 + lua/plugins/development.lua | 27 ++++++++++++++++++++++++--- 2 files changed, 25 insertions(+), 3 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index eb43f63..1dc215a 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -27,6 +27,7 @@ "harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" }, "headlines.nvim": { "branch": "master", "commit": "618ef1b2502c565c82254ef7d5b04402194d9ce3" }, "image.nvim": { "branch": "master", "commit": "645f997d171ea3d2505986a0519755600a26f02f" }, + "import-cost.nvim": { "branch": "main", "commit": "332b9870c7b22dcfb297a0be7d7a87c148181694" }, "indent-blankline.nvim": { "branch": "master", "commit": "d98f537c3492e87b6dc6c2e3f66ac517528f406f" }, "indent-o-matic": { "branch": "master", "commit": "4d11e98f523d3c4500b1dc33f0d1a248a4f69719" }, "instant.nvim": { "branch": "master", "commit": "294b6d08143b3db8f9db7f606829270149e1a786" }, diff --git a/lua/plugins/development.lua b/lua/plugins/development.lua index 7af610b..f676622 100644 --- a/lua/plugins/development.lua +++ b/lua/plugins/development.lua @@ -22,7 +22,7 @@ return { }, { "zeioth/garbage-day.nvim", - event = "VeryLazy", + event = "LspAttach", dependencies = "neovim/nvim-lspconfig", opts = {}, }, @@ -33,14 +33,35 @@ return { opts = { use_trouble_qflist = true, }, + ft = { + "typescript", + "typescriptreact", + }, }, { "Redoxahmii/json-to-types.nvim", cmd = { "ConvertJSONtoTS", "ConvertJSONtoTSBuffer" }, - ft = { "ts", "tsx" }, + build = "sh install.sh bun", + ft = { + "typescript", + "typescriptreact", + }, + }, + { + "barrett-ruth/import-cost.nvim", + build = "sh install.sh bun", + ft = { + "javascript", + "javascriptreact", + "typescript", + "typescriptreact", + }, }, { "dmmulroy/ts-error-translator.nvim", - ft = { "ts", "tsx" }, + ft = { + "typescript", + "typescriptreact", + }, }, }