~garritfra/dotfiles

8defbe09d5fc4313db5d7b1d208431c2a54d0a55 — Garrit Franke 5 months ago 2de0888
feat(vim): saner defaults
A .config/nvim/autoload/languageserver.vim => .config/nvim/autoload/languageserver.vim +0 -0
A .config/nvim/autoload/sets.vim => .config/nvim/autoload/sets.vim +21 -0
@@ 0,0 1,21 @@
set number relativenumber                   " Show line numbers in relative manner
set mouse=a                                 " Enable mouse
set updatetime=300                          " Quicker update time means snappier feedback
set mousemodel=popup_setpos
set tabstop=4 softtabstop=4
set shiftwidth=4
set smartindent
set expandtab
set backspace=indent,eol,start
set showmatch
set noswapfile
set nobackup
set nowritebackup
set shortmess+=c                            " Don't pass messages to |ins-completion-menu|.
set ignorecase
set scrolloff=8
set hidden
set linebreak
set laststatus=2
set noshowmode
set nohlsearch

M .config/nvim/init.vim => .config/nvim/init.vim +7 -4
@@ 16,8 16,9 @@ Plug 'scrooloose/nerdtree'
Plug 'prettier/vim-prettier'
Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
Plug 'pangloss/vim-javascript'
Plug 'mxw/vim-jsx'
Plug 'jelera/vim-javascript-syntax'
Plug 'luochen1990/rainbow'

" FZF
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }


@@ 246,6 247,9 @@ autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTr
" Mirror the NERDTree before showing it. This makes it the same on all tabs.
nnoremap <C-n> :NERDTreeMirror<CR>:NERDTreeFind<CR>

" Rainbow Brackets
let g:rainbow_active = 1

" -----------------------
" Remaps
" -----------------------


@@ 261,7 265,6 @@ nnoremap j gj

" NerdTree bindings
nnoremap <C-t> :NERDTreeToggle<CR>
nnoremap <C-f> :NERDTreeFind<CR>

" ctrl alt up/down (Move lines)
nnoremap <C-M-j> :m .+1<CR>==


@@ 276,8 279,8 @@ nnoremap <C-F> <cmd>Telescope live_grep<cr>
vnoremap <C-F> <cmd>Telescope live_grep<cr>

" ctrl p (Find file)
nnoremap <C-p> <cmd>Telescope find_files<cr><CR>
vnoremap <C-p> <cmd>Telescope find_files<cr><CR>
nnoremap <C-p> <cmd>Telescope find_files<CR>
vnoremap <C-p> <cmd>Telescope find_files<CR>

" Use yank to copy to clipboard
vnoremap y "*y

M .zshrc => .zshrc +9 -2
@@ 1,3 1,4 @@

# Path to your oh-my-zsh installation.
export ZSH="$HOME/.oh-my-zsh"
export EDITOR="/usr/local/bin/nvim"


@@ 11,8 12,14 @@ export PATH=$PATH:~/sources/scripts/
# Add cargo
export PATH=$PATH:~/.cargo/bin

# Add brew
export PATH=/opt/homebrew/bin:$PATH
# Add homebrew (multiple platforms)
CPU=$(uname -p)
if [[ "$CPU" == "arm" ]]; then
  export PATH="/opt/homebrew/bin:$PATH"
  alias oldbrew=/usr/local/bin/brew
else
  export PATH="/usr/local/bin:$PATH"
fi

# LLVM
export PATH="/usr/local/opt/llvm/bin:$PATH"