mirror of
https://github.com/jimeh/.emacs.d.git
synced 2026-02-19 13:46:41 +00:00
chore(lang): Various minor improvements for ruby-mode
This commit is contained in:
@@ -4,7 +4,7 @@ set -e
|
||||
|
||||
COMMAND_PREFIX=""
|
||||
|
||||
if [ -n "$RUBOCOP_DAEMON_USE_BUNDLER" ]; then
|
||||
if [ -n "$RUBOCOP_DAEMON_USE_BUNDLER" ] || [ -n "$BUNDLER_VERSION" ]; then
|
||||
COMMAND_PREFIX="bundle exec"
|
||||
fi
|
||||
|
||||
@@ -91,7 +91,10 @@ mkdir -p "$LOCK_PATH"
|
||||
for ARG in $@; do
|
||||
if [ -z "$STDIN_CONTENT" ] && [ "$ARG" == "--stdin" ] || [ "$ARG" == "-s" ]; then
|
||||
# Preserve final new lines when ingesting from STDIN
|
||||
STDIN_CONTENT="$(cat; printf x)"
|
||||
STDIN_CONTENT="$(
|
||||
cat
|
||||
printf x
|
||||
)"
|
||||
STDIN_CONTENT=${STDIN_CONTENT%x}
|
||||
fi
|
||||
done
|
||||
|
||||
@@ -85,6 +85,9 @@
|
||||
:custom
|
||||
(lsp-solargraph-multi-root nil))
|
||||
|
||||
(use-package bundler
|
||||
:defer t)
|
||||
|
||||
(use-package inf-ruby
|
||||
:defer t
|
||||
:hook
|
||||
|
||||
4
snippets/ruby-mode/rubocop/rud
Normal file
4
snippets/ruby-mode/rubocop/rud
Normal file
@@ -0,0 +1,4 @@
|
||||
# name: rubocop:disable ...
|
||||
# key: rud
|
||||
# --
|
||||
# rubocop:disable $0
|
||||
4
snippets/ruby-mode/rubocop/rue
Normal file
4
snippets/ruby-mode/rubocop/rue
Normal file
@@ -0,0 +1,4 @@
|
||||
# name: rubocop:enable ...
|
||||
# key: rue
|
||||
# --
|
||||
# rubocop:enable $0
|
||||
Reference in New Issue
Block a user