Files
vern-nvim/lua/vern-nvim/templates/extras/gitignore.lua
T
DarthMooMancer 9a6eb90efc refactor(configs): completely overhauled how projects and files are handled
1. Run is now handled by the global run function instead
of language specific runs
2. Fixed some notifications, making them more unified and informational
3. Cleaned up c/c++ code that was broken from create_file changes
4. Create_file has new architecture. It still takes in a function but
   can be disabled to be skipped (this will most likely change later as
   its unoptimized)
5. Added rust support
6. Keybinds are now only setup for language specific
7. Project creation has error and nil checking allowing for skipping and
   more customizable templates and setups for future languages
2026-10-30 13:24:38 -04:00

61 lines
676 B
Lua

local M = {}
---@param lang string
M.template = function(lang)
local base = [=[
.DS_Store
.vscode/
.idea/
.env
.env.*
]=]
local lang_block = {
python = vim.trim([=[
__pycache__/
build/
dist/
.venv/
env/
venv/
.pytest_cache/
]=]),
c = vim.trim([=[
build/
.cache/
]=]),
cpp = vim.trim([=[
build/
.cache/
]=]),
lua = vim.trim([=[
luac.out
]=]),
java = vim.trim([=[
bin/
*.class
*.jar
]=]),
rust = vim.trim([=[
debug
target
**/*.rs.bk
*.pdb
**/mutants.out*/
rustc-ice-*.txt
#.idea/
]=]),
}
local extra = (lang and lang_block[lang]) or ""
return base .. extra
end
return M