Browse Source

template.rb

main
pvincent 5 days ago
parent
commit
0cfbb46a23
  1. 6
      install.sh
  2. 16
      src/template.rb

6
install.sh

@ -9,7 +9,11 @@ BASEDIR=$(dirname "$0")
function install { function install {
mkdir -p $HOME/.local/rails mkdir -p $HOME/.local/rails
ln -sf $(realpath $BASEDIR/src/railsrc) $HOME/.railsrc ln -sf $(realpath $BASEDIR/src/railsrc) $HOME/.railsrc
ln -sf $(realpath $BASEDIR/src/local_rails.template.rb) $HOME/.local/rails/template.rb
ln -sf $(realpath $BASEDIR/src/template.rb) $HOME/.local/rails/template.rb
if [[ ! -f $HOME/.gemrc ]] || ! grep -q "gem: --no-document" $HOME/.gemrc; then
echo "gem: --no-document" >> $HOME/.gemrc
fi
echo Rails Templating stuff installed succesfully! echo Rails Templating stuff installed succesfully!
} }

16
src/local_rails.template.rb → src/template.rb

@ -43,19 +43,20 @@ inside '.vscode' do
{ {
"recommendations": [ "recommendations": [
"aki77.rails-db-schema", "aki77.rails-db-schema",
"aliariff.vscode-erb-beautify",
"bierner.markdown-mermaid", "bierner.markdown-mermaid",
"bpruitt-goddard.mermaid-markdown-syntax-highlighting", "bpruitt-goddard.mermaid-markdown-syntax-highlighting",
"bradlc.vscode-tailwindcss", "bradlc.vscode-tailwindcss",
"formulahendry.auto-close-tag", "formulahendry.auto-close-tag",
"formulahendry.auto-rename-tag", "formulahendry.auto-rename-tag",
"jgclark.vscode-todo-highlight", "jgclark.vscode-todo-highlight",
"redhat.vscode-yaml",
"shopify.ruby-lsp", "shopify.ruby-lsp",
"waderyan.gitblame", "waderyan.gitblame",
"yzhang.markdown-all-in-one", "yzhang.markdown-all-in-one",
"mads-hartmann.bash-ide-vscode",
"etsi0.class-collapse", "etsi0.class-collapse",
"marcoroth.herb-lsp",
"marcoroth.turbo-lsp",
"marcoroth.stimulus-lsp",
"joseph-ravenwolfe.kubernetes-yaml-formatter",
] ]
} }
CODE CODE
@ -77,7 +78,7 @@ CODE
"editor.formatOnType": true // Enable formatting while typing "editor.formatOnType": true // Enable formatting while typing
}, },
"[erb]": { "[erb]": {
"editor.defaultFormatter": "aliariff.vscode-erb-beautify",
"editor.defaultFormatter": "marcoroth.herb-lsp",
}, },
"debug.internalConsoleOptions": "neverOpen", "debug.internalConsoleOptions": "neverOpen",
"editor.formatOnSave": true, "editor.formatOnSave": true,
@ -89,6 +90,7 @@ CODE
"files.associations": { "files.associations": {
"*.html.erb": "erb", "*.html.erb": "erb",
"*.tailwind.css": "tailwindcss", "*.tailwind.css": "tailwindcss",
"**/tailwind/*.css": "tailwindcss",
}, },
"tailwindCSS.emmetCompletions": true, "tailwindCSS.emmetCompletions": true,
"todohighlight.enableDiagnostics": true, "todohighlight.enableDiagnostics": true,
@ -102,7 +104,6 @@ CODE
"**/*.erb", "**/*.erb",
"**/*.rake" "**/*.rake"
], ],
"vscode-erb-beautify.keepBlankLines": 1,
"terminal.integrated.cursorBlinking": true, "terminal.integrated.cursorBlinking": true,
"terminal.integrated.localEchoEnabled": "off", "terminal.integrated.localEchoEnabled": "off",
"terminal.integrated.fontLigatures.enabled": true, "terminal.integrated.fontLigatures.enabled": true,
@ -112,9 +113,12 @@ CODE
"javascript", "javascript",
"markdown", "markdown",
], ],
"class-collapse.style.placeholderText": "",
"class-collapse.style.openCollapseOpacity": 0.7, "class-collapse.style.openCollapseOpacity": 0.7,
"class-collapse.style.placeholderTextColor": "#FFFF0055", "class-collapse.style.placeholderTextColor": "#FFFF0055",
"class-collapse.style.placeholderText": "",
"languageServerHerb.formatter.enabled": true,
"languageServerHerb.formatter.maxLineLength": 120,
"languageServerHerb.trace.server": "messages",
} }
CODE CODE
Loading…
Cancel
Save