From 0cfbb46a23a27814cffe44292c1d212e210c8760 Mon Sep 17 00:00:00 2001 From: pvincent Date: Fri, 16 Jan 2026 09:49:41 +0000 Subject: [PATCH] template.rb --- install.sh | 6 +++++- src/{local_rails.template.rb => template.rb} | 16 ++++++++++------ 2 files changed, 15 insertions(+), 7 deletions(-) rename src/{local_rails.template.rb => template.rb} (90%) diff --git a/install.sh b/install.sh index 9d73ddf..e11ed46 100755 --- a/install.sh +++ b/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! } diff --git a/src/local_rails.template.rb b/src/template.rb similarity index 90% rename from src/local_rails.template.rb rename to src/template.rb index bd768eb..41fc04c 100644 --- a/src/local_rails.template.rb +++ b/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