Skip to content
DanteDogDevPublic

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Latest commit

 

History

151 Commits

Folders and files

Repository files navigation

ToastVim

Welcome to Toastvim – Where your code gets Toast, just like Toast!!!!!!

Toast

Installation

return {
  "DanteDogDev/ToastVim",
  import = "toastvim.plugins",

  ---@type ToastVim.Config
  opts = {},
}

Dependencies

  • Neovim 0.12+
  • git, used by Lazy.nvim and Git-based features.
  • curl, tar, tree-sitter-cli
  • fd
  • ripgrep
  • lazygit

Configuration

---@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,
    },
  },
}

About

No description, website, or topics provided.

Resources

Stars

4 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages