Skip to content

Commit

Permalink
Updates
Browse files Browse the repository at this point in the history
  • Loading branch information
TomLingham authored and Tom Lingham committed Feb 20, 2020
1 parent e0a9a60 commit 64ddc49
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 27 deletions.
12 changes: 7 additions & 5 deletions config/nvim/extras/plugins.vim
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Plug 'moll/vim-node'
Plug 'heavenshell/vim-jsdoc'

"----$ TypeScript
Plug 'leafgarland/typescript-vim'
Plug 'HerringtonDarkholme/yats.vim'

"----$ ReasonML
Plug 'reasonml-editor/vim-reason-plus'
Expand Down Expand Up @@ -47,7 +47,7 @@ Plug 'tpope/vim-fugitive'
"----$ Theme & Style
Plug 'morhetz/gruvbox'
Plug 'whatyouhide/vim-gotham'
Plug 'TomLingham/dracula.vim'
Plug 'dracula/vim'
Plug 'frankier/neovim-colors-solarized-truecolor-only'
Plug 'tomasr/molokai'
Plug 'vim-airline/vim-airline'
Expand All @@ -67,7 +67,7 @@ Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
Plug 'junegunn/fzf.vim'
Plug 'mileszs/ack.vim'
Plug 'w0rp/ale'
"Plug 'ntpeters/vim-better-whitespace'
Plug 'ntpeters/vim-better-whitespace'
Plug 'tpope/vim-surround'


Expand Down Expand Up @@ -99,7 +99,7 @@ nnoremap <silent> <F2> :call LanguageClient_textDocument_rename()<CR>

" Remove pipe character between window splits. The whitespace
" character after the \ is required!
set fillchars+=vert:\
set fillchars+=vert:\

" Style JsDocs
let g:javascript_plugin_jsdoc=1
Expand All @@ -115,7 +115,9 @@ let g:javascript_plugin_flow = 1

" Disable annoying markdown folding
let g:vim_markdown_folding_disabled = 1
let g:vim_markdown_conceal = 0
set conceallevel=2
let g:vim_markdown_conceal = 1
let g:vim_markdown_strikethrough = 1


"============================================================
Expand Down
27 changes: 12 additions & 15 deletions config/nvim/init.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ set backupdir=~/.vim/backup//
set directory=~/.vim/swap//
set spellfile=~/.vim/spell/en.utf-8.add


" Allow backspace over line breaks, the start of insert and indents
set backspace=indent,eol,start

Expand Down Expand Up @@ -110,14 +109,12 @@ autocmd BufNewFile,BufRead Vagrantfile set filetype=ruby
autocmd BufNewFile,BufRead *.md setlocal textwidth=80
autocmd BufNewFile,BufRead *.vue set filetype=html


"============================================================
" Macros
"============================================================

let @i = 'Iciwimportf=xifromf df(i f)xI'
let @o = '/## TODO/---/€kb?^[0-9]\+\. oi'
let @u = 'Go## <title>o---kkl'
let @u = 'Go## o---kkA'

"============================================================
" Leader Key Setup <Space>
Expand All @@ -128,17 +125,17 @@ nnoremap <SPACE> <Nop>
let mapleader="\<Space>"

" Leader commands
nmap <leader>; :tabedit $MYVIMRC<CR>
nmap <leader>s :sp<CR>
nmap <leader>v :vsp<CR>
nmap <leader>p :Explore<CR>
nmap <leader>gf :e <cfile><CR>
nmap <leader>' :StripWhitespace<CR>
nmap <silent> <leader><leader> :nohls<CR>
nmap <leader>9 :call <SID>SynStack()<CR>
nmap <leader>d :JsDoc<CR>
nmap <leader>q :TernDef<CR>
nmap <leader>n :e <cfile><cr>
nmap <leader>; :tabedit $MYVIMRC<CR>
nmap <leader>s :sp<CR>
nmap <leader>v :vsp<CR>
nmap <leader>p :Explore<CR>
nmap <leader>gf :e <cfile><CR>
nmap <leader>' :StripWhitespace<CR>
nmap <silent> <leader><leader> :nohls<CR>
nmap <leader>9 :call <SID>SynStack()<CR>
nmap <leader>d :JsDoc<CR>
nmap <leader>q :TernDef<CR>
nmap <leader>n :e <cfile><cr>
nmap <leader>t @o;
nmap <leader>l @u;
Expand Down
4 changes: 2 additions & 2 deletions dots/.aliases
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,7 @@ alias aws-docker-login='$(aws ecr get-login --no-include-email --region ap-south
alias gita='git add'
alias gitaa='git add -A'
alias gitb='git rev-parse --abbrev-ref HEAD'
alias gitbls='git branch'
alias gitc='git commit -m'
alias gitca='git commit --amend'
alias gitcane='git commit --amend --no-edit'
Expand Down Expand Up @@ -130,7 +131,6 @@ yesterday() {
DATE=$(date -v -1d +%F)
NOTESDIR="$HOME/Notes/$DATE"
FILENAME="$NOTESDIR/notes.md"

vim $FILENAME
}

Expand All @@ -153,7 +153,7 @@ notes() {
FILENAME="$NOTESDIR/notes.md"
if [ ! -f $FILENAME ]; then
NICEDATE=$(date "+%A %B %d, %Y")
echo "# Notes for $NICEDATE\n\n---\n\n\n---\n\n## TODO\n\n1. \n\n---" > $FILENAME;
echo "# Notes for $NICEDATE\n\n\n---\n\n## TODO\n\n1. \n\n---" > $FILENAME;
fi

vim $FILENAME
Expand Down
7 changes: 6 additions & 1 deletion dots/.zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ export LS_COLORS='di=00;33:ow=01;32:*.js=00;36'
export VISUAL=nvim
export SOURCE_DIR=$HOME/Source
export ZPLUG_HOME=/usr/local/opt/zplug
export RUST_SRC_PATH=$HOME/.multirust/toolchains/nightly-x86_64-apple-darwin/lib/rustlib/src/rust/src/
export RUST_SRC_PATH="$(rustc --print sysroot)/lib/rustlib/src/rust/src"

export HISTFILE=$HOME/.zsh_history
export HISTSIZE=500
Expand Down Expand Up @@ -56,6 +56,9 @@ export SDKMAN_DIR="$HOME/.sdkman"
# FZF
[ -s "$HOME/.fzf.zsh" ] && source "$HOME/.fzf.zsh"

# zsh-autosuggest
source /usr/local/share/zsh-autosuggestions/zsh-autosuggestions.zsh

#============================================
# Path
#============================================
Expand Down Expand Up @@ -110,3 +113,5 @@ export TMUX_COLOR_HIGHLIGHT_IDLE_FG='#555555'
source $HOME/.dotfiles/themes/dracula.sh
#source $HOME/.dotfiles/themes/solarized.sh
#source $HOME/.dotfiles/themes/molokai.sh

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
1 change: 1 addition & 0 deletions setup/brew.sh
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ packages=(
vim
zplug
zsh
zsh-autosuggestions
)

# Casks (Grpahical Applications)
Expand Down
1 change: 1 addition & 0 deletions setup/rust.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ if ! program_exists rustup ; then
fi

rustup completions zsh > ~/.zfunc/_rustup
rustup component add rls rust-analysis rust-src

# Cargo Packages (It should be available now)
# cargo install ripgrep
8 changes: 4 additions & 4 deletions vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"http.proxyStrctSSL": false,
"editor.fontFamily": "Menlo, Monaco, 'Courier New', monospace",
"http.proxyStrictSSL": false,
"editor.fontSize": 13,
"editor.tabSize": 2,
"editor.codeLens": false,
Expand Down Expand Up @@ -89,7 +88,6 @@
"yaml",
"yml"
],
"shellformat.flag": "-i 2",
"gitlens.mode.active": "zen",
"[groovy]": {
"editor.tabSize": 4
Expand Down Expand Up @@ -135,5 +133,7 @@
],
"terminal.integrated.scrollback": 6000,
"cSpell.language": "en-GB",
"vsicons.dontShowNewVersionMessage": true
"vsicons.dontShowNewVersionMessage": true,
"terminal.integrated.shell.osx": "/bin/zsh",
"editor.fontFamily": "'Fira Mono for Powerline', Monaco, 'Courier New', monospace"
}

0 comments on commit 64ddc49

Please sign in to comment.