mirror of
https://github.com/Ascyii/nvim.git
synced 2026-01-01 12:14:24 -05:00
28 lines
675 B
Lua
28 lines
675 B
Lua
--- @param name? string
|
|
--- @return string
|
|
local function get_custom_dir(name)
|
|
if name == nil then
|
|
return vim.fn.stdpath("config") .. "/lua/custom"
|
|
end
|
|
return vim.fn.stdpath("config") .. "/lua/custom/" .. name
|
|
end
|
|
|
|
return {
|
|
{
|
|
dir = get_custom_dir("todo"),
|
|
name = "todo",
|
|
dependencies = { "nvim-lua/plenary.nvim", "nvim-telescope/telescope.nvim" },
|
|
config = function()
|
|
require("custom.todo").setup()
|
|
end,
|
|
},
|
|
{
|
|
dir = get_custom_dir(),
|
|
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" },
|
|
},
|
|
},
|
|
}
|