Skip to content

Commit

Permalink
remove languageserver from R linters
Browse files Browse the repository at this point in the history
  • Loading branch information
DanielSchuette committed Aug 11, 2022
1 parent 0febb9a commit d9494d1
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 5 deletions.
12 changes: 9 additions & 3 deletions .bashrc
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,13 @@ export GIT_PS1_SHOWUNTRACKEDFILES=true
#- Path and Env Config -#
#-----------------------#
PATH="$HOME/.local/bin:$HOME/bin:$PATH"
export PATH
PATH="$HOME/.cabal/bin:$PATH"
export PATH

PATH="$HOME/bin/quarto-1.0.38/bin/:$PATH"
QUARTO_VERSION="1.0.38"

# RStudio configuration vars.
R_LIBS_USER="/home/daniel/code/r_libs"

# set environment variables for go (is this even necessary with modern Go?)
#GOBIN="$HOME/code/go_src/bin"
Expand All @@ -62,6 +66,7 @@ export PATH

# Ruby gems location on Manjaro.
PATH="$HOME/.local/share/gem/ruby/3.0.0/bin:$PATH"

export PATH

# prevent ranger from loading rc.conf from
Expand Down Expand Up @@ -120,8 +125,9 @@ alias ll="exa -lahF --git"
alias t="tokei"
alias b="bat"

# easy access to ipython
# easy access to ipython and R
alias py="ipython"
alias r="R --vanilla -q"

# copy to system clipboard by default
alias xclip="xclip -selection clipboard"
Expand Down
5 changes: 3 additions & 2 deletions vim-config/configs.vim
Original file line number Diff line number Diff line change
Expand Up @@ -499,6 +499,7 @@ let g:completor_python_binary = '/usr/bin/python3'
" NOTE(daniel): We explicitly don't use clang as a C++ linter here,
" because it sometimes detects obscure errors in libg++.
" CLANGCHECK probably doesn't add much, so we removed it.
" NOTE(daniel): Linting in R is terribly, terribly mem-intensive.
let g:ale_linters = {
\ 'typescript': ['eslint', 'tsserver'],
\ 'javascript': ['prettier', 'eslint', 'jshint'],
Expand All @@ -509,10 +510,10 @@ let g:ale_linters = {
\ 'cpp': ['clangtidy', 'g++'],
\ 'haskell': ['stack-build', 'hlint', 'stack-ghc', 'hls', 'hie'],
\ 'lhaskell': ['stack-build', 'hlint', 'stack-ghc', 'hls', 'hie'],
\ 'rust': ['cargo', 'rustc', 'analyzer']
\ 'rust': ['cargo', 'rustc', 'analyzer'],
\ 'r': ['lintr']
\}


let g:ale_cpp_cc_options = ' -Wall -Wextra -Wpedantic -Weffc++ -std=c++20'
let g:ale_cpp_gcc_options = '-Wall -Wextra -Wpedantic -Weffc++ -std=c++20'
let g:ale_cpp_clang_options = '-Wall -Wextra -std=c++20 -x c++'
Expand Down

0 comments on commit d9494d1

Please sign in to comment.