Browse Source

Changes for ruby, lsp

master
Taylor Bockman 4 years ago
parent
commit
bfd2d3b5a7
  1. 1
      dotfiles/bash/bash_profile
  2. 6
      dotfiles/bash/bashrc
  3. 8
      dotfiles/emacs.d/init.el

1
dotfiles/bash/bash_profile

@ -8,4 +8,3 @@ export PATH="/usr/local/opt/openjdk/bin:$PATH"
export PATH="/usr/local/opt/llvm/bin:$PATH" export PATH="/usr/local/opt/llvm/bin:$PATH"
export PATH="/usr/local/opt/qt/bin:$PATH" export PATH="/usr/local/opt/qt/bin:$PATH"
export PATH="/usr/local/opt/tcl-tk/bin:$PATH" export PATH="/usr/local/opt/tcl-tk/bin:$PATH"
if which rbenv > /dev/null; then eval "$(rbenv init -)"; fi

6
dotfiles/bash/bashrc

@ -124,6 +124,9 @@ if which pyenv-virtualenv-init > /dev/null; then
eval "$(pyenv virtualenv-init -)" eval "$(pyenv virtualenv-init -)"
fi fi
# RVM configuration
[[ -s "$HOME/.rvm/scripts/rvm" ]] && . "$HOME/.rvm/scripts/rvm"
# Test for the `bash-completion` package. Installing this adds better tab completion to bash. # Test for the `bash-completion` package. Installing this adds better tab completion to bash.
[[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh" [[ -r "/usr/local/etc/profile.d/bash_completion.sh" ]] && . "/usr/local/etc/profile.d/bash_completion.sh"
@ -152,3 +155,6 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
else else
export PS1='\[$bold\]\[$white\]\u@\h\[$reset\]: \[$bold\]\[$blue\]\w\[$reset\] \[$green\]$(parse_git_branch)\[$reset\]\[$bold\]\[$white\]⇨\[$reset\] ' export PS1='\[$bold\]\[$white\]\u@\h\[$reset\]: \[$bold\]\[$blue\]\w\[$reset\] \[$green\]$(parse_git_branch)\[$reset\]\[$bold\]\[$white\]⇨\[$reset\] '
fi fi
# Add RVM to PATH for scripting. Make sure this is the last PATH variable change.
export PATH="$PATH:$HOME/.rvm/bin"

8
dotfiles/emacs.d/init.el

@ -207,9 +207,10 @@ There are two things you can do about this warning:
;; LSP ;; LSP
(use-package lsp-mode (use-package lsp-mode
:ensure t :ensure t
:hook (python-mode . lsp-deferred) :hook ((python-mode . lsp-deferred)
:commands (lsp lsp-deferred)) (ruby-mode . lsp-deferred))
:commands (lsp lsp-deferred))
(use-package lsp-ui (use-package lsp-ui
@ -296,6 +297,7 @@ There are two things you can do about this warning:
;; ;;
(require 'rvm) (require 'rvm)
(rvm-use-default)
(add-hook 'ruby-mode-hook 'robe-mode) (add-hook 'ruby-mode-hook 'robe-mode)

Loading…
Cancel
Save