Full refactor of codebase and usage of lazyvim opts setting. Also split code in custom plugins

This commit is contained in:
2025-08-29 12:30:41 +02:00
parent 524673abfc
commit e37215ae97
33 changed files with 1075 additions and 1381 deletions

26
lua/plugins/custom.lua Normal file
View File

@@ -0,0 +1,26 @@
-- 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" },
},
},
}