diff --git a/lua/ht/plugins/libs.lua b/lua/ht/plugins/libs.lua deleted file mode 100644 index aadff819..00000000 --- a/lua/ht/plugins/libs.lua +++ /dev/null @@ -1,13 +0,0 @@ -return { - -- ui components - { "MunifTanjim/nui.nvim", lazy = true }, - - -- popup library - { "nvim-lua/popup.nvim", lazy = true }, - - -- library used by other plugins - { "nvim-lua/plenary.nvim", lazy = true }, - - -- dev-icons - { "nvim-tree/nvim-web-devicons", lazy = true }, -} diff --git a/src/conf/plugins/lib/index.ts b/src/conf/plugins/lib/index.ts index 3c6b7f00..6543eda0 100644 --- a/src/conf/plugins/lib/index.ts +++ b/src/conf/plugins/lib/index.ts @@ -1,3 +1,20 @@ +import { Plugin } from "@core/model"; import { plugin as imageNvim } from "./image-nvim"; -export const plugins = [imageNvim] as const; + +function newLibPlugin(name: string) { + return new Plugin({ + shortUrl: name, + lazy: { + lazy: true, + } + }); +} + +export const plugins = [ + newLibPlugin("MunifTanjim/nui.nvim"), + newLibPlugin("nvim-lua/popup.nvim"), + newLibPlugin("nvim-lua/plenary.nvim"), + newLibPlugin("nvim-tree/nvim-web-devicons"), + imageNvim +] as const;