nvim and tmuxinator
This commit is contained in:
parent
061e8baca4
commit
5437afcf0f
4
config/nvim/.netrwhist
Normal file
4
config/nvim/.netrwhist
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
let g:netrw_dirhistmax =10
|
||||||
|
let g:netrw_dirhist_cnt =2
|
||||||
|
let g:netrw_dirhist_1='/home'
|
||||||
|
let g:netrw_dirhist_2='/'
|
95
config/nvim/init.vim
Normal file
95
config/nvim/init.vim
Normal file
@ -0,0 +1,95 @@
|
|||||||
|
let mapleader = " "
|
||||||
|
|
||||||
|
call plug#begin('~/.vim/plugged')
|
||||||
|
if has('nvim')
|
||||||
|
Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' }
|
||||||
|
else
|
||||||
|
Plug 'Shougo/deoplete.nvim'
|
||||||
|
Plug 'roxma/nvim-yarp'
|
||||||
|
Plug 'roxma/vim-hug-neovim-rpc'
|
||||||
|
endif
|
||||||
|
let g:deoplete#enable_at_startup = 1
|
||||||
|
Plug 'neoclide/coc.nvim', {'do': 'yarn install --frozen-lockfile'}
|
||||||
|
Plug 'xolox/vim-misc'
|
||||||
|
Plug 'micha/vim-colors-solarized'
|
||||||
|
Plug 'neoclide/coc.nvim', {'branch': 'release'}
|
||||||
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
Plug 'majutsushi/tagbar'
|
||||||
|
Plug 'vim-airline/vim-airline'
|
||||||
|
Plug 'ctrlpvim/ctrlp.vim'
|
||||||
|
Plug 'wincent/command-t'
|
||||||
|
Plug 'mattn/emmet-vim'
|
||||||
|
Plug 'itchyny/calendar.vim'
|
||||||
|
Plug 'houtsnip/vim-emacscommandline'
|
||||||
|
Plug 'mhinz/vim-startify'
|
||||||
|
Plug 'jeetsukumaran/vim-buffergator'
|
||||||
|
Plug 'reinh/vim-makegreen'
|
||||||
|
Plug 'tbastos/vim-lua'
|
||||||
|
Plug 'wolfgangmehner/lua-support'
|
||||||
|
Plug 'drmingdrmer/vim-indent-lua'
|
||||||
|
"Plug 'shougo/denite.nvim'
|
||||||
|
Plug 'rust-lang/rust.vim'
|
||||||
|
Plug 'ap/vim-buftabline'
|
||||||
|
Plug 'enricobacis/vim-airline-clock'
|
||||||
|
Plug 'davidhalter/jedi-vim'
|
||||||
|
Plug 'ervandew/supertab'
|
||||||
|
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --all' }
|
||||||
|
Plug 'junegunn/fzf.vim'
|
||||||
|
Plug 'fatih/vim-go', { 'do': ':GoUpdateBinaries' }
|
||||||
|
Plug 'wincent/ferret'
|
||||||
|
Plug 'thoughtbot/vim-rspec'
|
||||||
|
Plug 'preservim/nerdtree'
|
||||||
|
call plug#end()
|
||||||
|
|
||||||
|
set tabstop=2
|
||||||
|
|
||||||
|
" Relative numbers and when not in buiffer set absolute numbers
|
||||||
|
set number relativenumber
|
||||||
|
augroup numbertoggle
|
||||||
|
autocmd!
|
||||||
|
autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
||||||
|
autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
" Colors
|
||||||
|
syntax enable
|
||||||
|
set background=dark
|
||||||
|
colorscheme solarized
|
||||||
|
|
||||||
|
"Calendar stuff
|
||||||
|
let g:calendar_google_calendar = 1
|
||||||
|
let g:calendar_google_task = 1
|
||||||
|
|
||||||
|
" Tab stuff
|
||||||
|
set hidden
|
||||||
|
nnoremap <Leader>/ :Ag<CR>
|
||||||
|
nnoremap <C-J> :bnext<CR>
|
||||||
|
nnoremap <C-K> :bprev<CR>
|
||||||
|
nnoremap <leader>L :Lua<CR>
|
||||||
|
nmap <leader>bq :bp <BAR> bd #<CR>
|
||||||
|
|
||||||
|
"Clock
|
||||||
|
let g:airline#extensions#clock#format = '%I:%M:%S %X'
|
||||||
|
|
||||||
|
map <Leader><Leader>, :call RunCurrentSpecFile()<CR>
|
||||||
|
map <Leader><Leader>. :call RunAllSpecs()<CR>
|
||||||
|
|
||||||
|
set shiftwidth=2
|
||||||
|
set tabstop=2
|
||||||
|
set expandtab
|
||||||
|
|
||||||
|
" use <tab> for trigger completion and navigate to the next complete item
|
||||||
|
function! s:check_back_space() abort
|
||||||
|
let col = col('.') - 1
|
||||||
|
return !col || getline('.')[col - 1] =~ '\s'
|
||||||
|
endfunction
|
||||||
|
let g:coc_node_path = "/home/tyrel/.nvm/versions/node/v12.14.0/bin/node"
|
||||||
|
|
||||||
|
inoremap <silent><expr> <Tab>
|
||||||
|
\ pumvisible() ? "\<C-n>" :
|
||||||
|
\ <SID>check_back_space() ? "\<Tab>" :
|
||||||
|
\ coc#refresh()
|
||||||
|
|
||||||
|
map <C-o> :NERDTreeToggle<CR>
|
||||||
|
"close vim if the only window left open is a NERDTree
|
||||||
|
autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif
|
85
config/tmuxinator/tidelift.yml
Normal file
85
config/tmuxinator/tidelift.yml
Normal file
@ -0,0 +1,85 @@
|
|||||||
|
# /home/tyrel/.config/tmuxinator/tidelift.yml
|
||||||
|
|
||||||
|
name: tidelift
|
||||||
|
root: /code/tidelift
|
||||||
|
|
||||||
|
# Optional tmux socket
|
||||||
|
# socket_name: foo
|
||||||
|
|
||||||
|
# Note that the pre and post options have been deprecated and will be replaced by
|
||||||
|
# project hooks.
|
||||||
|
|
||||||
|
# Project hooks
|
||||||
|
|
||||||
|
# Runs on project start, always
|
||||||
|
# on_project_start: command
|
||||||
|
|
||||||
|
# Run on project start, the first time
|
||||||
|
# on_project_first_start: command
|
||||||
|
|
||||||
|
# Run on project start, after the first time
|
||||||
|
# on_project_restart: command
|
||||||
|
|
||||||
|
# Run on project exit ( detaching from tmux session )
|
||||||
|
# on_project_exit: command
|
||||||
|
|
||||||
|
# Run on project stop
|
||||||
|
# on_project_stop: command
|
||||||
|
|
||||||
|
# Runs in each window and pane before window/pane specific commands. Useful for setting up interpreter versions.
|
||||||
|
pre_window: rbenv shell 2.6.6
|
||||||
|
|
||||||
|
# Pass command line options to tmux. Useful for specifying a different tmux.conf.
|
||||||
|
# tmux_options: -f ~/.tmux.mac.conf
|
||||||
|
|
||||||
|
# Change the command to call tmux. This can be used by derivatives/wrappers like byobu.
|
||||||
|
# tmux_command: byobu
|
||||||
|
|
||||||
|
# Specifies (by name or index) which window will be selected on project startup. If not set, the first window is used.
|
||||||
|
# startup_window: editor
|
||||||
|
|
||||||
|
# Specifies (by index) which pane of the specified window will be selected on project startup. If not set, the first pane is used.
|
||||||
|
# startup_pane: 1
|
||||||
|
|
||||||
|
# Controls whether the tmux session should be attached to automatically. Defaults to true.
|
||||||
|
# attach: false
|
||||||
|
|
||||||
|
windows:
|
||||||
|
- frontend:
|
||||||
|
layout: tiled
|
||||||
|
panes:
|
||||||
|
- dev:
|
||||||
|
- cd frontend
|
||||||
|
- yarn install
|
||||||
|
- yarn run dev
|
||||||
|
- git:
|
||||||
|
- cd frontend
|
||||||
|
- dependencyci:
|
||||||
|
layout: tiled
|
||||||
|
panes:
|
||||||
|
- puma:
|
||||||
|
- cd dependencyci
|
||||||
|
- bundle exec puma -w 1
|
||||||
|
- sidekiq:
|
||||||
|
- cd dependencyci
|
||||||
|
- bundle exec sidekiq -C config/sidekiq.yml
|
||||||
|
- git:
|
||||||
|
- cd dependencyci
|
||||||
|
- servers:
|
||||||
|
layout: tiled
|
||||||
|
panes:
|
||||||
|
- auth-service:
|
||||||
|
- cd auth-service
|
||||||
|
- rbenv shell 2.6.3
|
||||||
|
- ruby app.rb
|
||||||
|
- octo-goggles:
|
||||||
|
- cd octo-goggles
|
||||||
|
- rbenv shell 2.6.3
|
||||||
|
- ruby app.rb
|
||||||
|
- subscriber-api:
|
||||||
|
- cd auth-service
|
||||||
|
- rbenv shell 2.6.3
|
||||||
|
- bundle exec puma config.ru
|
||||||
|
- artifactory-plugin:
|
||||||
|
- cd artifactory-plugin
|
||||||
|
- docker-compose up
|
Loading…
Reference in New Issue
Block a user