Skip to content

Instantly share code, notes, and snippets.

@yokodev
Created November 19, 2019 19:38
Show Gist options
  • Save yokodev/9d357a66a2a2e4f2b3f4921e72749cfa to your computer and use it in GitHub Desktop.
Save yokodev/9d357a66a2a2e4f2b3f4921e72749cfa to your computer and use it in GitHub Desktop.
TMUX and Nvim, Vim working O,K colors from themes working as they should
# this is .tmux.conf which is under .tmux/.tmux.conf
set -g default-terminal "xterm-256color" # this line has to be the first line in .tmux.conf or it will give a lot/ unexisting of trouble
#After so many trial and error I changed this to true. I'm not sure about it but, it could be...
# RGB 24-bit colour support (tmux >= 2.2), possible values are:
# - true
# - false (default)
tmux_conf_theme_24b_colour=true
"This is my conf...
"This file goes under .config/nvim I'm using Ubuntu 16.04
" Specify a directory for plugins (for Neovim: ~/.local/share/nvim/plugged)
call plug#begin('~/.vim/plugged')
" Make sure you use single quotes
" Shorthand notation; fetches https://github.com/junegunn/vim-easy-align
"Plug 'junegunn/vim-easy-align'
" Any valid git URL is allowed
Plug 'https://github.com/junegunn/vim-github-dashboard.git'
" Multiple Plug commands can be written in a single line using | separators
Plug 'SirVer/ultisnips' | Plug 'honza/vim-snippets'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
Plug 'Xuyuanp/nerdtree-git-plugin'
Plug 'mhartington/oceanic-next'
Plug 'ayu-theme/ayu-vim'
Plug 'crusoexia/vim-monokai'
"Eslint
"Plug 'https://github.com/vim-syntastic/syntastic.git'
"git gutter
"Plug 'airblade/vim-gitgutter'
Plug 'airblade/vim-gitgutter'
" this is for airline
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'https://github.com/ctrlpvim/ctrlp.vim'
"this is for the JS
"Plug 'https://github.com/pangloss/vim-javascript.git'
Plug 'pangloss/vim-javascript', { 'for': ['javascript', 'javascript.jsx'] }
Plug 'mxw/vim-jsx', { 'for': ['javascript', 'javascript.jsx'] }
Plug 'elzr/vim-json'
Plug 'hashivim/vim-terraform'
"YCM
Plug 'https://github.com/Valloric/YouCompleteMe.git'
" Initialize plugin system
call plug#end()
"git gutter
set updatetime=250 " so that it reflects faster
"FIXIN COLORS
" Or if you have Neovim >= 0.1.5
if (has("termguicolors"))
set termguicolors
endif
" Themes
syntax enable
colorscheme OceanicNext
let g:airline_powerline_fonts = 1
let g:airline_theme='tomorrow'
"let g:airline_theme='molokai'
let g:airline#extensions#tabline#enabled = 1
"
"*****************JS PART****************
let g:jsx_ext_required = 0 " Allow JSX in normal JS files
"this is the indentation part
" this is so Allow vim-terraform to align settings automatically with Tabularize.
let g:terraform_align=1
set tabline=0
" size of a hard tabstop
set tabstop=4
" always uses spaces instead of tab characters
set expandtab
" size of an "indent"
set shiftwidth=2
"Additional configuration
"
"filetype plugin indent on
"syntax enable
set number
" use jshint
let g:syntastic_javascript_checkers = ['jshint']
" show any linting errors immediately
let g:syntastic_check_on_open = 1
"this is for CtrlP
let g:ctrlp_user_command = ['.git', 'cd %s && git ls-files -co --exclude-standard']
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment