Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Anton K committed Jan 21, 2020
0 parents commit 59a963e
Show file tree
Hide file tree
Showing 5 changed files with 31 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM ubuntu:latest
RUN apt-get -y update && apt-get -y install vim openjdk-11-jdk npm curl git &&\
curl -fLo ~/.vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim
COPY files/* /root
RUN vim +PlugInstall +qall
RUN cd /root/find-java-home-test && npm i find-java-home
WORKDIR /root
3 changes: 3 additions & 0 deletions files/root/.vim/coc-settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"metals.javaHome": "/usr/lib/jvm/java-11-openjdk-amd64"
}
12 changes: 12 additions & 0 deletions files/root/.vimrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
call plug#begin('~/.vim/plugged')
Plug 'neoclide/coc.nvim', {'branch': 'release'}
call plug#end()
nmap <silent> gd <Plug>(coc-definition)
nmap <silent> gy <Plug>(coc-type-definition)
nmap <silent> gi <Plug>(coc-implementation)
nmap <silent> gr <Plug>(coc-references)
set number
autocmd filetype scala set expandtab
autocmd filetype scala set tabstop=2
autocmd filetype scala set shiftwidth=2
4 changes: 4 additions & 0 deletions files/root/find-java-home-test/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require('find-java-home')(function(err, home){
if(err)return console.log(err);
console.log(home);
});
5 changes: 5 additions & 0 deletions files/root/main.scala
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
object Main extends App {
case class MyData(x: Int, y: String)
val d = MyData(1, "abc")
println(s"${d.x}, ${d.y}")
}

0 comments on commit 59a963e

Please sign in to comment.