Welcome to Toastvim – Where your code gets Toast, just like Toast!!!!!!
return {
"DanteDogDev/ToastVim",
import = "toastvim.plugins",
---@type ToastVim.Config
opts = {},
}- Neovim 0.12+
git, used by Lazy.nvim and Git-based features.curl,tar,tree-sitter-clifdripgreplazygit
---@type ToastVim.Config
opts = {
-- Passed to conform.nvim.
formatters_by_ft = {
lua = { "stylua" },
},
-- Passed to nvim-lint.
linters_by_ft = {
},
lsp = {
-- Loaded when an LSP client attaches to a matching buffer.
keymaps = {
{
mode = "n",
keys = "<leader>ch",
action = "<CMD>LspClangdSwitchSourceHeader<CR>",
opts = { desc = "Switch to Source/Header" },
ft = { "cpp", "c" },
},
},
},
template = {
-- Defaults to stdpath("config") .. "/templates".
template_path = vim.fn.stdpath("config") .. "/templates",
expressions = {
["${FILENAME}"] = function() return vim.fn.expand("%:t:r") end,
["${DATE}"] = function() return os.date("%d/%m/%y") end,
["${AUTHOR}"] = function() return vim.fn.system("git config user.name"):gsub("\n", "") end,
["${EMAIL}"] = function() return vim.fn.system("git config user.email"):gsub("\n", "") end,
},
},
}