Switch to neovim, update skhd, iterm, yabai

This commit is contained in:
2021-08-05 12:40:22 -05:00
parent b9e3d70802
commit e4ff941e25
7 changed files with 125 additions and 57 deletions

View File

@@ -1,44 +1,33 @@
" Plugins will be downloaded under the specified directory.
call plug#begin('~/.vim/plugged')
" Declare the list of plugins
" List ends here. Plugins become visible to Vim after this call.
" Themes
Plug 'arcticicestudio/nord-vim'
Plug 'sonph/onehalf', {'rtp': 'vim/'}
" themes
Plug 'fxn/vim-monochrome'
Plug 'dylanaraps/wal.vim'
" Finder
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
" Snippets
Plug 'sheerun/vim-polyglot'
Plug 'MarcWeber/vim-addon-mw-utils'
Plug 'tomtom/tlib_vim'
Plug 'https://github.com/honza/vim-snippets'
" Autocomplete
Plug 'ervandew/supertab'
" autocomplete
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'mattn/emmet-vim'
" Other
" other
Plug 'preservim/nerdcommenter'
Plug 'scrooloose/nerdtree'
Plug '907th/vim-auto-save'
Plug 'airblade/vim-gitgutter'
" telescope
Plug 'nvim-lua/popup.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim'
Plug 'fannheyward/telescope-coc.nvim'
" debugging
Plug 'puremourning/vimspector'
call plug#end()
" Theme settings for tmux
" theme settings
set termguicolors
let &t_8f = "\<Esc>[38;2;%lu;%lu;%lum"
let &t_8b = "\<Esc>[48;2;%lu;%lu;%lum"
set background=dark
if (empty($TMUX))
if (has("nvim"))
let $NVIM_TUI_ENABLE_TRUE_COLOR=1
@@ -48,43 +37,64 @@ if (empty($TMUX))
endif
endif
"Set syntax highlighter"
set background=dark
colorscheme minochrome
" Windows Splits
" new leader key
nnoremap <SPACE> <Nop>
let mapleader=" "
" windows splits
nnoremap <C-J> <C-W><C-J>
nnoremap <C-K> <C-W><C-K>
nnoremap <C-L> <C-W><C-L>
nnoremap <C-H> <C-W><C-H>
" No Arrow Keys
" no arrow keys
noremap <Up> <Nop>
noremap <Down> <Nop>
noremap <Left> <Nop>
noremap <Right> <Nop>
" Fuzzy Map Key
nnoremap <silent> <C-p> :Files<cr>
nnoremap <silent> <C-g> :GFiles<cr>
nnoremap <C-f> :Rg!
nnoremap <C-n> :NERDTreeToggle<CR>
" telescope essentials
nnoremap <leader>ff <cmd>Telescope find_files<cr>
nnoremap <leader>fg <cmd>Telescope live_grep<cr>
nnoremap <leader>fb <cmd>Telescope buffers<cr>
nnoremap <leader>ft <cmd>Telescope<cr>
" Replace command
" telescope git
nnoremap <leader>gs <cmd>Telescope git_status<cr>
nnoremap <leader>gb <cmd>Telescope git_branches<cr>
nnoremap <leader>gc <cmd>Telescope git_commits<cr>
" telescope coc
nmap <silent> gd <cmd>Telescope coc definitions<cr>
nmap <silent> gr <cmd>Telescope coc references<cr>
" debugging keys
nmap <Leader>dd <Plug>VimspectorContinue
nmap <Leader>ds <Plug>VimspectorStop
nmap <Leader>dr <Plug>VimpectorRestart
nmap <Leader>dv <Plug>VimspectorToggleBreakpoint
" replace command
vnoremap <C-r> "hy:%s/<C-r>h//gc<left><left><left>
" Emmet Key Binding
" emmet key binding
let g:user_emmet_leader_key=','
" Build Commands
" build commands
nnoremap <C-b> <Esc>:w<CR>:!clear;python3 %<CR>
nnoremap <C-t> <Esc>:w<CR>:!clear;pipenv run pytest -v<CR>
" VIM Settings
set rtp+=/usr/local/opt/fzf
" vim settings
set number
set hidden
set nohlsearch
set nocompatible
set relativenumber
set tabstop=4 softtabstop=0 expandtab shiftwidth=4
set backspace=indent,eol,start
let g:auto_save = 1