Skip to content

Commit

Permalink
Semi-regular dotfiles "who knows what I did" commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mileszs committed May 16, 2023
1 parent 2628b40 commit 0eb864d
Show file tree
Hide file tree
Showing 40 changed files with 96 additions and 72 deletions.
32 changes: 32 additions & 0 deletions config/nvim/init.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
vim.api.nvim_command('set runtimepath^=~/.vim')
vim.api.nvim_command('let &packpath = &runtimepath')
vim.cmd('source ~/.vimrc')

-- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1

-- set termguicolors to enable highlight groups
vim.opt.termguicolors = true

-- empty setup using defaults
require("nvim-tree").setup()

-- OR setup with some options
require("nvim-tree").setup({
sort_by = "case_sensitive",
view = {
adaptive_size = true,
mappings = {
list = {
{ key = "u", action = "dir_up" },
},
},
},
renderer = {
group_empty = true,
},
filters = {
dotfiles = true,
},
})
1 change: 1 addition & 0 deletions config/nvim/nvim
12 changes: 0 additions & 12 deletions vim/.netrwhist

This file was deleted.

1 change: 1 addition & 0 deletions vim/plugged/ale
Submodule ale added at 8bcbb2
2 changes: 1 addition & 1 deletion vim/plugged/forest-night
Submodule forest-night updated from 1aca18 to 8c1f89
1 change: 1 addition & 0 deletions vim/plugged/fzf-lua
Submodule fzf-lua added at b1dea8
2 changes: 1 addition & 1 deletion vim/plugged/gist-vim
Submodule gist-vim updated from 4a2103 to 5bfbb5
1 change: 1 addition & 0 deletions vim/plugged/indent-blankline.nvim
Submodule indent-blankline.nvim added at c4c203
1 change: 1 addition & 0 deletions vim/plugged/nvim-lspconfig
Submodule nvim-lspconfig added at dd9e7f
1 change: 1 addition & 0 deletions vim/plugged/nvim-tree.lua
Submodule nvim-tree.lua added at e14c28
1 change: 1 addition & 0 deletions vim/plugged/nvim-web-devicons
Submodule nvim-web-devicons added at 05e107
2 changes: 1 addition & 1 deletion vim/plugged/seoul256.vim
Submodule seoul256.vim updated from 24ed46 to 9faf49
2 changes: 1 addition & 1 deletion vim/plugged/sonokai
Submodule sonokai updated from 862982 to aca74a
2 changes: 1 addition & 1 deletion vim/plugged/tcomment_vim
Submodule tcomment_vim updated from 2de388 to b4930f
2 changes: 1 addition & 1 deletion vim/plugged/tlib_vim
Submodule tlib_vim updated from a071b6 to d3bdad
2 changes: 1 addition & 1 deletion vim/plugged/ultisnips
Submodule ultisnips updated from 66d81f to e99fdf
2 changes: 1 addition & 1 deletion vim/plugged/vim-bundler
Submodule vim-bundler updated from 40efd1 to ce4690
2 changes: 1 addition & 1 deletion vim/plugged/vim-deus
Submodule vim-deus updated from 4f83b9 to 1be965
2 changes: 1 addition & 1 deletion vim/plugged/vim-dispatch
Submodule vim-dispatch updated from fe6a34 to 00e77d
2 changes: 1 addition & 1 deletion vim/plugged/vim-endwise
Submodule vim-endwise updated from 97180a to 4e5c83
2 changes: 1 addition & 1 deletion vim/plugged/vim-eunuch
Submodule vim-eunuch updated from 4a4bf1 to 291ef1
2 changes: 1 addition & 1 deletion vim/plugged/vim-fugitive
Submodule vim-fugitive updated from 9cba97 to 5b0b13
2 changes: 1 addition & 1 deletion vim/plugged/vim-haml
Submodule vim-haml updated from 467d0e to 95a095
2 changes: 1 addition & 1 deletion vim/plugged/vim-heroku
Submodule vim-heroku updated from d654e7 to fcac7f
2 changes: 1 addition & 1 deletion vim/plugged/vim-markdown
Submodule vim-markdown updated from baf259 to feadbc
2 changes: 1 addition & 1 deletion vim/plugged/vim-polyglot
Submodule vim-polyglot updated from cc6319 to bc8a81
2 changes: 1 addition & 1 deletion vim/plugged/vim-projectionist
Submodule vim-projectionist updated from 348e07 to 558013
2 changes: 1 addition & 1 deletion vim/plugged/vim-ragtag
Submodule vim-ragtag updated from b8966c to 51b313
2 changes: 1 addition & 1 deletion vim/plugged/vim-rails
Submodule vim-rails updated from 2c4223 to a6d2ba
2 changes: 1 addition & 1 deletion vim/plugged/vim-rake
Submodule vim-rake updated from 34ece1 to e08049
2 changes: 1 addition & 1 deletion vim/plugged/vim-rhubarb
Submodule vim-rhubarb updated from 964d48 to cad60f
2 changes: 1 addition & 1 deletion vim/plugged/vim-snippets
Submodule vim-snippets updated from 24a9bf to 8c9179
2 changes: 1 addition & 1 deletion vim/plugged/vim-surround
Submodule vim-surround updated from f51a26 to 3d188e
2 changes: 1 addition & 1 deletion vim/plugged/vim-test
Submodule vim-test updated from f56194 to c6e5d2
2 changes: 1 addition & 1 deletion vim/plugged/vim-tmux-navigator
Submodule vim-tmux-navigator updated from 6a1e58 to 41ea9d
2 changes: 1 addition & 1 deletion vim/plugged/vim-unimpaired
Submodule vim-unimpaired updated from 4afbe5 to 6d44a6
2 changes: 1 addition & 1 deletion vim/plugged/vimux
Submodule vimux updated from 29d46f to 616fcb
7 changes: 7 additions & 0 deletions vim/ultisnips/ruby.snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
snippet class "class"
class ${1}
def initialize(${2})
${3}
end
end
endsnippet
51 changes: 21 additions & 30 deletions vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,15 @@ filetype off " required for Vundle

call plug#begin('~/.vim/plugged')

Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
Plug 'ibhagwan/fzf-lua', {'branch': 'main'}
" optional for icon support
Plug 'nvim-tree/nvim-web-devicons'
Plug 'nvim-tree/nvim-tree.lua'
Plug 'sheerun/vim-polyglot'
Plug 'neoclide/coc.nvim', {'branch': 'release'}

Plug 'janko-m/vim-test'
Plug 'tpope/vim-unimpaired'
Plug 'tpope/vim-rhubarb'
Plug 'tpope/vim-fugitive'
Plug 'tpope/vim-rails'
Plug 'tpope/vim-rake'
Expand All @@ -26,28 +28,22 @@ Plug 'tpope/vim-ragtag'
Plug 'tpope/vim-bundler'
Plug 'tpope/vim-cucumber'
Plug 'tpope/vim-haml'
Plug 'tpope/vim-rhubarb'
Plug 'tpope/vim-markdown'
Plug 'tpope/vim-projectionist'
Plug 'tomtom/quickfixsigns_vim'
Plug 'tomtom/tcomment_vim'
Plug 'tomtom/tlib_vim'
Plug 'janx/vim-rubytest'
Plug 'mattn/gist-vim'
Plug 'tomtom/quickfixsigns_vim'
Plug 'benmills/vimux'
Plug 'altercation/vim-colors-solarized'
Plug 'tomtom/tcomment_vim'
Plug 'preservim/vimux'
Plug 'christoomey/vim-tmux-navigator'
Plug 'vim-scripts/AutoClose'
Plug 'MarcWeber/vim-addon-mw-utils'
Plug 'tomtom/tlib_vim'
Plug 'SirVer/ultisnips'
Plug 'honza/vim-snippets'
Plug 'mileszs/vim-react-snippets'
Plug 'nathanaelkane/vim-indent-guides'
Plug 'rizzatti/dash.vim'
Plug 'scrooloose/syntastic'
Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'c-brenn/phoenix.vim'
Plug 'godlygeek/tabular'
Plug 'dense-analysis/ale'

" themes
Plug 'ajmwagar/vim-deus'
Expand Down Expand Up @@ -125,7 +121,7 @@ let g:seoul256_background = 234
colo seoul256

" Set colorscheme and background
" set background=dark
set background=dark
colorscheme seoul256

" extended matching
Expand Down Expand Up @@ -176,6 +172,13 @@ augroup END
autocmd BufRead,BufNewFile *.es6 setfiletype javascript
autocmd BufNewFile,BufRead *.html.slim set filetype=slim

" ALE linters
let g:ale_linters = {
\ 'javascript': ['eslint'],
\ 'ruby': ['rubocop'],
\}
let g:ale_linters_explicit = 1

" JSX highlighting in regular JS files
let g:jsx_ext_required = 0

Expand Down Expand Up @@ -223,21 +226,7 @@ nmap <Leader>x <Plug>ToggleAutoCloseMappings
inoremap jj <esc>
" CtrlP -> FZF
nmap <C-P> :FZF<CR>

" Configure Syntastic for linter checks
set statusline+=%#warningmsg#
set statusline+=%{SyntasticStatuslineFlag()}
set statusline+=%*

let g:syntastic_always_populate_loc_list = 1
let g:syntastic_auto_loc_list = 2
let g:syntastic_check_on_open = 1
let g:syntastic_check_on_wq = 0
let g:syntastic_javascript_checkers = ['eslint']
let g:syntastic_ruby_checkers = ['rubocop']

nnoremap <c-P> <cmd>lua require('fzf-lua').files()<CR>
let g:ctrlp_custom_ignore = {
\ 'dir': '\v[\/](\.git|node_modules|doc)$',
Expand Down Expand Up @@ -270,3 +259,5 @@ let test#ruby#rspec#options = '--deprecation-out /dev/null'

" github
" source /Users/mileszs/.vimgithubrc

let g:python3_host_prog = '/usr/local/bin/python3' " -- Set python 3 provider
3 changes: 1 addition & 2 deletions zshrc
Original file line number Diff line number Diff line change
Expand Up @@ -90,5 +90,4 @@ export MANPATH="/usr/local/opt/gnu-sed/libexec/gnuman:$MANPATH"

[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh

. /usr/local/opt/asdf/etc/bash_completion.d/asdf.bash
. /usr/local/opt/asdf/asdf.sh
. /usr/local/opt/asdf/libexec/asdf.sh

0 comments on commit 0eb864d

Please sign in to comment.