Löve quickstart template

https://github.com/qiekn/love-quickstart

Engine → Install Löve

brew install --cask love
vim ~/.zshrc

# alias to love
alias love="/Applications/love.app/Contents/MacOS/love"

source ~/.zshrc

love ~/path/to/mygame

Editor → Neovim

lua_ls lsp config

.luarc.json

{
  "workspace.library": [
    "${3rd}/love2d/library"
  ]
}

Code Formatter

https://github.com/JohnnyMorganz/StyLua

stylua.toml

syntax = "All"
column_width = 120
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferDouble"
call_parentheses = "Always"
collapse_simple_statement = "Never"
space_after_function_names = "Never"

[sort_requires]
enabled = false
-- stylua: ignore start
-- stylua: ignore end

-- stylua: ignore
local data = {
	x =  100,
	y = -100
}