mirror of
https://github.com/Ascyii/nvim.git
synced 2026-01-01 04:04:24 -05:00
27 lines
658 B
Lua
27 lines
658 B
Lua
-- Custom modules
|
|
|
|
--- @param name string
|
|
--- @return string
|
|
local function get_dir(name)
|
|
return vim.fn.stdpath("config") .. "/lua/custom/" .. name
|
|
end
|
|
|
|
return {
|
|
{
|
|
dir = get_dir("todo"),
|
|
name = "todo",
|
|
dependencies = { "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" },
|
|
config = function()
|
|
require("custom.todo").setup()
|
|
end,
|
|
},
|
|
{
|
|
dir = vim.fn.stdpath("config") .. "/lua/custom", -- folder containing typst.lua
|
|
name = "typst",
|
|
dependencies = { "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" },
|
|
keys = {
|
|
{ "<leader>tw", function() require("custom.typst").Watch_and_open() end, desc = "Watch Typst" },
|
|
},
|
|
},
|
|
}
|