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,8 +9,12 @@ BASEDIR=$(dirname "$0")
function install {
mkdir -p $HOME/.local/rails
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!
}

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

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