Skip to content

Commit

Permalink
update coc.nvim config
Browse files Browse the repository at this point in the history
  • Loading branch information
Wes974 committed Sep 7, 2020
1 parent 281bfc4 commit 188c5e1
Show file tree
Hide file tree
Showing 6 changed files with 33 additions and 769 deletions.
47 changes: 19 additions & 28 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -1,39 +1,30 @@
# Use ubuntu 20.04 as base image
FROM ubuntu:20.04

# Set timezone
# Set timezone to fix error, update apt and install what's needed
ENV TZ=Europe/Paris
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone

# Update apt
RUN apt-get -y update
# Install what's needed
RUN apt-get -y install build-essential gdb valgrind curl git-all zsh neovim

#####################
# Install my dotfiles
#####################

# Install oh-my-zsh and add some plugins
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions

# Install powerlevel10k and build gitstatus
RUN git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k && $HOME/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build -w -s

# Install node.js for coc.nvim
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone && \
apt-get -y update && \
apt-get -y install build-essential gdb valgrind curl git-all zsh neovim

# Install oh-my-zsh and some plugins + powerlevel10k and build gitstatus
RUN sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)" && \
git clone https://github.com/zsh-users/zsh-syntax-highlighting.git ${ZSH_CUSTOM:-~/.oh-my-zsh/custom}/plugins/zsh-syntax-highlighting && \
git clone https://github.com/zsh-users/zsh-completions ${ZSH_CUSTOM:=~/.oh-my-zsh/custom}/plugins/zsh-completions && \
git clone --depth=1 https://github.com/romkatv/powerlevel10k.git ${ZSH_CUSTOM:-$HOME/.oh-my-zsh/custom}/themes/powerlevel10k && \
$HOME/.oh-my-zsh/custom/themes/powerlevel10k/gitstatus/build -w -s

# Install node.js for installing coc.nvim
RUN curl -sL -O install-node.now.sh/lts && bash lts --yes # && rm lts
RUN sh -c 'curl -fLo "${XDG_DATA_HOME:-$HOME/.local/share}"/nvim/site/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'; npm install -g neovim


# Move config files
# Move config files and install neovim plugins + workaround to install coc extensions
COPY ./dotfiles dotfiles
RUN cp -r dotfiles/nvim $HOME/.config/nvim && cp dotfiles/zshrc $HOME/.zshrc && cp dotfiles/p10k.zsh $HOME/.p10k.zsh

# Install Plugins
RUN nvim --headless +PlugInstall +qall

# Install coc.nvim extensions
# TODO
RUN cp -r dotfiles/nvim $HOME/.config/nvim && \
cp dotfiles/zshrc $HOME/.zshrc && \
cp dotfiles/p10k.zsh $HOME/.p10k.zsh && \
nvim --headless +PlugInstall +qall && \
timeout 2m nvim --headless +CocUpdate; exit 0

WORKDIR /home
11 changes: 5 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# doc-debug
# wes-tools

Dockerfile for building a Linux container for testing and debugging C programs.

Expand All @@ -9,23 +9,22 @@ Useful to access tools not available or partially working on macOS (GDB, Valgrin
Pull the dockerfile

```shell
docker pull ouweis/doc-debug
docker pull ouweis/wes-tools
```

And now run it like this

```shell
docker run -it --rm -v $PWD:/home ouweis/doc-debug
docker run -it --rm -v $PWD:/home ouweis/wes-tools /bin/zsh
```

You can also make an alias of it

```shell
alias doc-debug="docker run -it --rm -v '$PWD:/home' ouweis/doc-debug"
alias wes-tools="docker run -it --rm -v '$PWD:/home' ouweis/wes-tools /bin/zsh"
```

## TODO

- [ ] Add custom config for shell
- [X] Add custom config for shell
- [ ] Add other tools ?

107 changes: 0 additions & 107 deletions dotfiles/nvim/colors/hybrid.vim

This file was deleted.

Loading

0 comments on commit 188c5e1

Please sign in to comment.