mirror of
https://github.com/Ascyii/nvim.git
synced 2026-01-01 04:04:24 -05:00
Full refactor of codebase and usage of lazyvim opts setting. Also split code in custom plugins
This commit is contained in:
26
lua/plugins/custom.lua
Normal file
26
lua/plugins/custom.lua
Normal 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" },
|
||||
},
|
||||
},
|
||||
}
|
||||
Reference in New Issue
Block a user