From 5437afcf0fb6fca0ece7ff000e3e439cbc50b976 Mon Sep 17 00:00:00 2001 From: Tyrel Souza <923113+tyrelsouza@users.noreply.github.com> Date: Wed, 6 May 2020 10:23:54 -0400 Subject: [PATCH] nvim and tmuxinator --- config/nvim/.netrwhist | 4 ++ config/nvim/init.vim | 95 ++++++++++++++++++++++++++++++++++ config/tmuxinator/tidelift.yml | 85 ++++++++++++++++++++++++++++++ 3 files changed, 184 insertions(+) create mode 100644 config/nvim/.netrwhist create mode 100644 config/nvim/init.vim create mode 100644 config/tmuxinator/tidelift.yml diff --git a/config/nvim/.netrwhist b/config/nvim/.netrwhist new file mode 100644 index 0000000..fda9d45 --- /dev/null +++ b/config/nvim/.netrwhist @@ -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='/' diff --git a/config/nvim/init.vim b/config/nvim/init.vim new file mode 100644 index 0000000..52adde4 --- /dev/null +++ b/config/nvim/init.vim @@ -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 / :Ag +nnoremap :bnext +nnoremap :bprev +nnoremap L :Lua +nmap bq :bp bd # + +"Clock +let g:airline#extensions#clock#format = '%I:%M:%S %X' + +map , :call RunCurrentSpecFile() +map . :call RunAllSpecs() + +set shiftwidth=2 +set tabstop=2 +set expandtab + +" use 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 + \ pumvisible() ? "\" : + \ check_back_space() ? "\" : + \ coc#refresh() + +map :NERDTreeToggle +"close vim if the only window left open is a NERDTree +autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif diff --git a/config/tmuxinator/tidelift.yml b/config/tmuxinator/tidelift.yml new file mode 100644 index 0000000..ca14ecf --- /dev/null +++ b/config/tmuxinator/tidelift.yml @@ -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