Merge remote-tracking branch 'Jidbo/master'
This commit is contained in:
commit
e3f366a57b
35 changed files with 617 additions and 181 deletions
2
.gitignore
vendored
2
.gitignore
vendored
|
@ -1,2 +0,0 @@
|
||||||
.localcommands
|
|
||||||
.vim/bundle/*
|
|
4
.gitmodules
vendored
Normal file
4
.gitmodules
vendored
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
[submodule "dotbot"]
|
||||||
|
path = dotbot
|
||||||
|
url = https://github.com/anishathalye/dotbot
|
||||||
|
ignore = dirty
|
30
README.md
30
README.md
|
@ -1,27 +1,15 @@
|
||||||
# My Dotfiles with an installer
|
# My Dotfiles
|
||||||
|
The collection of my precious dotfiles.
|
||||||
|
|
||||||
These are just my own config files for various applications like atom, vim and zsh...
|
## Installation
|
||||||
It also contains an installation script "setup.sh" to easily apply all of the settings and install some needed tools like
|
To install run this command:
|
||||||
Vundle.
|
|
||||||
|
|
||||||
## Usage
|
|
||||||
Make sure you have these packages installed:
|
|
||||||
- atom
|
|
||||||
- vim
|
|
||||||
- zsh
|
|
||||||
- oh-my-zsh
|
|
||||||
- tmux
|
|
||||||
- tmuxinator
|
|
||||||
- the_silver_surfer
|
|
||||||
- powerline-fonts
|
|
||||||
- fzf
|
|
||||||
|
|
||||||
If you want to install and apply all of the settings you just need to run:
|
|
||||||
```
|
```
|
||||||
cd ~
|
git clone https://github.com/saibotk/.dotfiles ~/; cd ~/.dotfiles; ./install
|
||||||
git clone https://github.com/saibotk/.dotfiles
|
|
||||||
.dotfiles/setup.sh
|
|
||||||
```
|
```
|
||||||
|
This should install all dependecies and create symlinks to all needed files. The only thing that you have to setup on your own is `nvim`.
|
||||||
|
|
||||||
|
## Customization
|
||||||
|
It is possible to load your own zsh-plugins and other commands you want to execute in the `.zshrc`. To add zsh-plugins add a `plugins` file to `~/.dotfiles/shell/`. An example is provided in `~/.dotfiles/shell/plugins.example`. The same thing applies to commands you want to execute in on shell startup, just add a `localcommands` file with your commands in `~/.dotfiles/shell/`.
|
||||||
|
|
||||||
## Atom packages
|
## Atom packages
|
||||||
If you plan on using you own atom package list, you can modify the "atom/packages.list".
|
If you plan on using you own atom package list, you can modify the "atom/packages.list".
|
||||||
|
|
1
dotbot
Submodule
1
dotbot
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit 2c8a0431edfd826c8caa4afbfa22ca408e745db6
|
15
install
Executable file
15
install
Executable file
|
@ -0,0 +1,15 @@
|
||||||
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
CONFIG="install.conf.yaml"
|
||||||
|
DOTBOT_DIR="dotbot"
|
||||||
|
|
||||||
|
DOTBOT_BIN="bin/dotbot"
|
||||||
|
BASEDIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
|
||||||
|
|
||||||
|
cd "${BASEDIR}"
|
||||||
|
git -C "${DOTBOT_DIR}" submodule sync --quiet --recursive
|
||||||
|
git submodule update --init --recursive "${DOTBOT_DIR}"
|
||||||
|
|
||||||
|
"${BASEDIR}/${DOTBOT_DIR}/${DOTBOT_BIN}" -d "${BASEDIR}" -c "${CONFIG}" "${@}"
|
43
install.conf.yaml
Normal file
43
install.conf.yaml
Normal file
|
@ -0,0 +1,43 @@
|
||||||
|
- defaults:
|
||||||
|
link:
|
||||||
|
relink: true
|
||||||
|
create: true
|
||||||
|
|
||||||
|
# clean config and home directory from bad symbolic links
|
||||||
|
- clean: ['~', '.config/']
|
||||||
|
|
||||||
|
- link:
|
||||||
|
~/.tmux.conf:
|
||||||
|
path: shell/tmux.conf
|
||||||
|
~/.vimrc:
|
||||||
|
path: vim/vimrc
|
||||||
|
~/.vim:
|
||||||
|
path: vim/vim
|
||||||
|
~/.config/nvim:
|
||||||
|
path: nvim
|
||||||
|
|
||||||
|
- shell:
|
||||||
|
# install ohmyzsh
|
||||||
|
-
|
||||||
|
command: 'if [ ! -d ~/.oh-my-zsh ]; then sh -c "$(curl -fsSL https://raw.github.com/ohmyzsh/ohmyzsh/master/tools/install.sh)"; fi'
|
||||||
|
stdin: false
|
||||||
|
stdout: true
|
||||||
|
description: "Install ohmyzsh:"
|
||||||
|
quiet: false
|
||||||
|
# install vim plug for vim
|
||||||
|
- [curl -fLo vim/vim/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim, "Install vim-plug for vim:"]
|
||||||
|
# install vim plug for nvim
|
||||||
|
- [curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim, "Install vim-plug for nvim:"]
|
||||||
|
# install vim plugins
|
||||||
|
-
|
||||||
|
command: vim +PlugInstall +qall
|
||||||
|
stdin: true
|
||||||
|
stdout: true
|
||||||
|
description: "Install vim plugins! Hit enter once if stuck:"
|
||||||
|
quiet: false
|
||||||
|
|
||||||
|
# do this last to override generated .zshrc
|
||||||
|
- link:
|
||||||
|
~/.zshrc:
|
||||||
|
force: true
|
||||||
|
path: shell/zshrc
|
1
nvim/.gitignore
vendored
Normal file
1
nvim/.gitignore
vendored
Normal file
|
@ -0,0 +1 @@
|
||||||
|
bundle/
|
84
nvim/functions.vim
Normal file
84
nvim/functions.vim
Normal file
|
@ -0,0 +1,84 @@
|
||||||
|
" FUNCTIONS
|
||||||
|
|
||||||
|
" auto reload .vimrc on write
|
||||||
|
autocmd BufWritePost init.vim source %
|
||||||
|
|
||||||
|
" toggle hybrid number mode
|
||||||
|
:augroup numbertoggle
|
||||||
|
: autocmd!
|
||||||
|
: autocmd BufEnter,FocusGained,InsertLeave * set relativenumber
|
||||||
|
: autocmd BufLeave,FocusLost,InsertEnter * set norelativenumber
|
||||||
|
:augroup END
|
||||||
|
|
||||||
|
" Delete buffer while keeping window layout (don't close buffer's windows).
|
||||||
|
" Version 2008-11-18 from http://vim.wikia.com/wiki/VimTip165
|
||||||
|
if v:version < 700 || exists('loaded_bclose') || &cp
|
||||||
|
finish
|
||||||
|
endif
|
||||||
|
let loaded_bclose = 1
|
||||||
|
if !exists('bclose_multiple')
|
||||||
|
let bclose_multiple = 1
|
||||||
|
endif
|
||||||
|
|
||||||
|
" Display an error message.
|
||||||
|
function! s:Warn(msg)
|
||||||
|
echohl ErrorMsg
|
||||||
|
echomsg a:msg
|
||||||
|
echohl NONE
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
" Command ':Bclose' executes ':bd' to delete buffer in current window.
|
||||||
|
" The window will show the alternate buffer (Ctrl-^) if it exists,
|
||||||
|
" or the previous buffer (:bp), or a blank buffer if no previous.
|
||||||
|
" Command ':Bclose!' is the same, but executes ':bd!' (discard changes).
|
||||||
|
" An optional argument can specify which buffer to close (name or number).
|
||||||
|
function! s:Bclose(bang, buffer)
|
||||||
|
if empty(a:buffer)
|
||||||
|
let btarget = bufnr('%')
|
||||||
|
elseif a:buffer =~ '^\d\+$'
|
||||||
|
let btarget = bufnr(str2nr(a:buffer))
|
||||||
|
else
|
||||||
|
let btarget = bufnr(a:buffer)
|
||||||
|
endif
|
||||||
|
if btarget < 0
|
||||||
|
call s:Warn('No matching buffer for '.a:buffer)
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
if empty(a:bang) && getbufvar(btarget, '&modified')
|
||||||
|
call s:Warn('No write since last change for buffer '.btarget.' (use :Bclose!)')
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
" Numbers of windows that view target buffer which we will delete.
|
||||||
|
let wnums = filter(range(1, winnr('$')), 'winbufnr(v:val) == btarget')
|
||||||
|
if !g:bclose_multiple && len(wnums) > 1
|
||||||
|
call s:Warn('Buffer is in multiple windows (use ":let bclose_multiple=1")')
|
||||||
|
return
|
||||||
|
endif
|
||||||
|
let wcurrent = winnr()
|
||||||
|
for w in wnums
|
||||||
|
execute w.'wincmd w'
|
||||||
|
let prevbuf = bufnr('#')
|
||||||
|
if prevbuf > 0 && buflisted(prevbuf) && prevbuf != btarget
|
||||||
|
buffer #
|
||||||
|
else
|
||||||
|
bprevious
|
||||||
|
endif
|
||||||
|
if btarget == bufnr('%')
|
||||||
|
" Numbers of listed buffers which are not the target to be deleted.
|
||||||
|
let blisted = filter(range(1, bufnr('$')), 'buflisted(v:val) && v:val != btarget')
|
||||||
|
" Listed, not target, and not displayed.
|
||||||
|
let bhidden = filter(copy(blisted), 'bufwinnr(v:val) < 0')
|
||||||
|
" Take the first buffer, if any (could be more intelligent).
|
||||||
|
let bjump = (bhidden + blisted + [-1])[0]
|
||||||
|
if bjump > 0
|
||||||
|
execute 'buffer '.bjump
|
||||||
|
else
|
||||||
|
execute 'enew'.a:bang
|
||||||
|
endif
|
||||||
|
endif
|
||||||
|
endfor
|
||||||
|
execute 'bdelete'.a:bang.' '.btarget
|
||||||
|
execute wcurrent.'wincmd w'
|
||||||
|
endfunction
|
||||||
|
command! -bang -complete=buffer -nargs=? Bclose call <SID>Bclose(<q-bang>, <q-args>)
|
||||||
|
nnoremap <silent> <Leader>bd :Bclose<CR>
|
12
nvim/init.vim
Normal file
12
nvim/init.vim
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
let g:nvim_config_root = stdpath('config')
|
||||||
|
let g:config_file_list = [
|
||||||
|
\ 'plugins.vim',
|
||||||
|
\ 'options.vim',
|
||||||
|
\ 'mappings.vim',
|
||||||
|
\ 'functions.vim',
|
||||||
|
\ 'pluginoptions.vim',
|
||||||
|
\ ]
|
||||||
|
|
||||||
|
for f in g:config_file_list
|
||||||
|
execute 'source ' . g:nvim_config_root . '/' . f
|
||||||
|
endfor
|
73
nvim/luna.vim
Normal file
73
nvim/luna.vim
Normal file
|
@ -0,0 +1,73 @@
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette = {}
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.accents = {'red': [ '#ffffff' , '' , 231 , '' , '' ], }
|
||||||
|
|
||||||
|
let s:N1 = [ '#ffffff' , '#005252' , 231 , 36 ]
|
||||||
|
let s:N2 = [ '#ffffff' , '#3399aa' , 231 , 29 ]
|
||||||
|
let s:N3 = [ '#ffffff' , '#003636' , 231 , 23 ]
|
||||||
|
let g:airline#themes#luna#palette.normal = airline#themes#generate_color_map(s:N1, s:N2, s:N3)
|
||||||
|
let g:airline#themes#luna#palette.normal_modified = {
|
||||||
|
\ 'airline_c': [ '#ffffff' , '#450000' , 231 , 52 , '' ] ,
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let s:I1 = [ '#ffffff' , '#789f00' , 231 , 106 ]
|
||||||
|
let s:I2 = [ '#ffffff' , '#3399aa' , 231 , 29 ]
|
||||||
|
let s:I3 = [ '#ffffff' , '#003636' , 231 , 23 ]
|
||||||
|
let g:airline#themes#luna#palette.insert = airline#themes#generate_color_map(s:I1, s:I2, s:I3)
|
||||||
|
let g:airline#themes#luna#palette.insert_modified = {'airline_c': ['#ffffff' ,'#005e5e' ,255, 52, '']}
|
||||||
|
let g:airline#themes#luna#palette.insert_paste = {
|
||||||
|
\ 'airline_a': [ s:I1[0] , '#789f00' , s:I1[2] , 106 , '' ] ,
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.replace = copy(g:airline#themes#luna#palette.insert)
|
||||||
|
let g:airline#themes#luna#palette.replace.airline_a = [ s:I2[0] , '#920000' , s:I2[2] , 88 , '' ]
|
||||||
|
let g:airline#themes#luna#palette.replace_modified = g:airline#themes#luna#palette.insert_modified
|
||||||
|
|
||||||
|
let s:V1 = [ '#ffff9a' , '#ff8036' , 222 , 208 ]
|
||||||
|
let s:V2 = [ '#ffffff' , '#3399aa' , 231 , 29 ]
|
||||||
|
let s:V3 = [ '#ffffff' , '#003636' , 231 , 23 ]
|
||||||
|
let g:airline#themes#luna#palette.visual = airline#themes#generate_color_map(s:V1, s:V2, s:V3)
|
||||||
|
let g:airline#themes#luna#palette.visual_modified = {
|
||||||
|
\ 'airline_c': [ '#ffffff' , '#450000' , 231 , 52 , '' ] ,
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let s:IA = [ '#4e4e4e' , '#002b2b' , 59 , 23 , '' ]
|
||||||
|
let g:airline#themes#luna#palette.inactive = airline#themes#generate_color_map(s:IA, s:IA, s:IA)
|
||||||
|
let g:airline#themes#luna#palette.inactive_modified = {
|
||||||
|
\ 'airline_c': [ '#e20000' , '' , 166 , '' , '' ] ,
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.tabline = {
|
||||||
|
\ 'airline_tab': ['#2aa198', '#3399aa', 231, 29, ''],
|
||||||
|
\ 'airline_tabsel': ['#ffffff', '#2e8b57', 231, 36, ''],
|
||||||
|
\ 'airline_tabtype': ['#ffffff', '#005252', 231, 36, ''],
|
||||||
|
\ 'airline_tabfill': ['#ffffff', '#003636', 231, 23, ''],
|
||||||
|
\ 'airline_tabmod': ['#ffffff', '#780000', 231, 88, ''],
|
||||||
|
\ }
|
||||||
|
|
||||||
|
let s:WI = [ '#ffffff', '#5f0000', 231, 88 ]
|
||||||
|
let g:airline#themes#luna#palette.normal.airline_warning = [
|
||||||
|
\ s:WI[0], s:WI[1], s:WI[2], s:WI[3]
|
||||||
|
\ ]
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.normal_modified.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.insert.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.insert_modified.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.visual.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.visual_modified.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.replace.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
||||||
|
|
||||||
|
let g:airline#themes#luna#palette.replace_modified.airline_warning =
|
||||||
|
\ g:airline#themes#luna#palette.normal.airline_warning
|
19
nvim/mappings.vim
Normal file
19
nvim/mappings.vim
Normal file
|
@ -0,0 +1,19 @@
|
||||||
|
" REMAPS
|
||||||
|
" search for visual selection
|
||||||
|
vnoremap // y/<C-R>"<CR>
|
||||||
|
nnoremap H ^
|
||||||
|
|
||||||
|
" ex command
|
||||||
|
cnoremap <C-p> <Up>
|
||||||
|
cnoremap <C-n> <Down>
|
||||||
|
|
||||||
|
" auto expand brackets
|
||||||
|
inoremap (; (<CR>)<C-c>O
|
||||||
|
inoremap (, (<CR>),<C-c>O
|
||||||
|
inoremap {; {<CR>}<C-c>O
|
||||||
|
inoremap {, {<CR>},<C-c>O
|
||||||
|
inoremap [; [<CR>]<C-c>O
|
||||||
|
inoremap [, [<CR>],<C-c>O
|
||||||
|
|
||||||
|
" toggle hybrid mode
|
||||||
|
nnoremap <leader>h :set rnu!<CR>
|
55
nvim/options.vim
Normal file
55
nvim/options.vim
Normal file
|
@ -0,0 +1,55 @@
|
||||||
|
" OPTIONS
|
||||||
|
|
||||||
|
" syntax
|
||||||
|
syntax on
|
||||||
|
let mapleader=" "
|
||||||
|
|
||||||
|
" color settings
|
||||||
|
set termguicolors
|
||||||
|
colorscheme kuroi
|
||||||
|
set background=dark
|
||||||
|
hi MatchParen guibg=NONE guifg=red gui=bold
|
||||||
|
|
||||||
|
" random settings
|
||||||
|
set number
|
||||||
|
set clipboard=unnamed
|
||||||
|
set mouse=nvi
|
||||||
|
" set smarttab
|
||||||
|
set expandtab
|
||||||
|
set tabstop=4
|
||||||
|
set visualbell
|
||||||
|
set virtualedit=block
|
||||||
|
set scrolloff=1
|
||||||
|
set wildmenu
|
||||||
|
set autoread
|
||||||
|
set lazyredraw
|
||||||
|
set history=250
|
||||||
|
set noshowmode
|
||||||
|
|
||||||
|
" tabs and line wrap
|
||||||
|
set tabstop=4
|
||||||
|
set wrapmargin=8
|
||||||
|
set softtabstop=0 noexpandtab
|
||||||
|
set shiftwidth=4
|
||||||
|
set backspace=2
|
||||||
|
set backspace=indent,eol,start
|
||||||
|
set encoding=utf-8
|
||||||
|
set autoindent
|
||||||
|
|
||||||
|
" search
|
||||||
|
set incsearch
|
||||||
|
set hlsearch
|
||||||
|
set smartcase
|
||||||
|
|
||||||
|
" Disable Backup and Swap files
|
||||||
|
set noswapfile
|
||||||
|
set nobackup
|
||||||
|
set nowritebackup
|
||||||
|
|
||||||
|
" setup split
|
||||||
|
set splitbelow
|
||||||
|
set splitright
|
||||||
|
|
||||||
|
" Enable folding
|
||||||
|
set foldmethod=indent
|
||||||
|
set foldlevel=99
|
125
nvim/pluginoptions.vim
Normal file
125
nvim/pluginoptions.vim
Normal file
|
@ -0,0 +1,125 @@
|
||||||
|
" PLUGIN OPTIONS
|
||||||
|
|
||||||
|
" NERD TREE SETUP
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
let NERDTreeIgnore=['\.pyc$', '\~$'] "ignore files in NERDTree
|
||||||
|
|
||||||
|
map <leader>e :NERDTreeToggle<CR>
|
||||||
|
|
||||||
|
" AIRLINE SETUP
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
" sections
|
||||||
|
let g:airline_section_y = ""
|
||||||
|
let g:airline_section_z = "%l/%L:%c"
|
||||||
|
let g:airline_section_b = "%{airline#util#wrap(airline#extensions#branch#get_head(),0)}"
|
||||||
|
" other stuff
|
||||||
|
let g:airline_theme='luna'
|
||||||
|
let g:airline_powerline_fonts = 1
|
||||||
|
let g:airline_inactive_collapse=1
|
||||||
|
let g:airline_skip_empty_sections = 1
|
||||||
|
let g:airline#extensions#whitespace#enabled = 0
|
||||||
|
let g:airline#extensions#wordcount#enabled = 0
|
||||||
|
let g:airline#extensions#keymap#enabled = 0
|
||||||
|
set ttimeoutlen=50
|
||||||
|
|
||||||
|
" GITGUTTER SETUP
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
let g:gitgutter_sign_added = '∙'
|
||||||
|
let g:gitgutter_sign_modified = '∙'
|
||||||
|
let g:gitgutter_sign_removed = '∙'
|
||||||
|
let g:gitgutter_sign_modified_removed = '∙'
|
||||||
|
augroup VimDiff
|
||||||
|
autocmd!
|
||||||
|
autocmd VimEnter,FilterWritePre * if &diff | GitGutterDisable | endif
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
" FZF SETUP
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
nmap <C-y> :Buffers<CR>
|
||||||
|
nmap <Leader>f :GFiles<CR>
|
||||||
|
let g:fzf_buffers_jump = 1
|
||||||
|
|
||||||
|
" VIMWIKI SETUP
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
let g:vimwiki_list = [{'path': '~/.wiki/'}]
|
||||||
|
|
||||||
|
" VIMTEX SETUP
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
let g:vimtex_compile_progname = 'nvr'
|
||||||
|
let g:tex_flavor = 'latex'
|
||||||
|
|
||||||
|
" COLORS.LUA SETUP
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
lua require'colorizer'.setup()
|
||||||
|
|
||||||
|
" TMUX SETUP
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
let g:tmuxcomplete#trigger = ''
|
||||||
|
|
||||||
|
" GOYO
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
function! s:goyo_enter()
|
||||||
|
set noshowcmd
|
||||||
|
set scrolloff=999
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
function! s:goyo_leave()
|
||||||
|
set showcmd
|
||||||
|
set scrolloff=1
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
autocmd! User GoyoEnter nested call <SID>goyo_enter()
|
||||||
|
autocmd! User GoyoLeave nested call <SID>goyo_leave()
|
||||||
|
|
||||||
|
let g:goyo_linenr = 0
|
||||||
|
|
||||||
|
" AUTOCOMPLETION
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
if executable('pyls')
|
||||||
|
au User lsp_setup call lsp#register_server({
|
||||||
|
\ 'name': 'pyls',
|
||||||
|
\ 'cmd': {server_info->['pyls']},
|
||||||
|
\ 'whitelist': ['python'],
|
||||||
|
\ })
|
||||||
|
endif
|
||||||
|
|
||||||
|
function! s:on_lsp_buffer_enabled() abort
|
||||||
|
setlocal omnifunc=lsp#complete
|
||||||
|
setlocal signcolumn=yes
|
||||||
|
nmap <buffer> gd <plug>(lsp-definition)
|
||||||
|
nmap <buffer> <f2> <plug>(lsp-rename)
|
||||||
|
" refer to doc to add more commands
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
augroup lsp_install
|
||||||
|
au!
|
||||||
|
" call s:on_lsp_buffer_enabled only for languages that has the server registered.
|
||||||
|
autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
|
||||||
|
augroup END
|
||||||
|
|
||||||
|
" ULTISNIPS SETUP
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
" Trigger configuration. Do not use <tab> if you use https://github.com/Valloric/YouCompleteMe.
|
||||||
|
let g:UltiSnipsExpandTrigger="<tab>"
|
||||||
|
let g:UltiSnipsJumpForwardTrigger="<c-l>"
|
||||||
|
let g:UltiSnipsJumpBackwardTrigger="<c-h>"
|
||||||
|
let g:UltiSnipsSnippetDirectories=[$HOME."/.vim/snipps"]
|
||||||
|
|
||||||
|
" If you want :UltiSnipsEdit to split your window.
|
||||||
|
let g:UltiSnipsEditSplit="vertical"
|
||||||
|
|
||||||
|
" EMMET SETUP
|
||||||
|
" =========================
|
||||||
|
|
||||||
|
let g:user_emmet_leader_key='<C-i>'
|
81
nvim/plugins.vim
Normal file
81
nvim/plugins.vim
Normal file
|
@ -0,0 +1,81 @@
|
||||||
|
" PLUGINS
|
||||||
|
call plug#begin('~/.config/nvim/bundle')
|
||||||
|
" USEFUL
|
||||||
|
" ===================
|
||||||
|
|
||||||
|
" Editor config
|
||||||
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
|
|
||||||
|
" comment plugin
|
||||||
|
Plug 'tpope/vim-commentary'
|
||||||
|
|
||||||
|
" brackets management
|
||||||
|
Plug 'tpope/vim-surround'
|
||||||
|
|
||||||
|
" Snippets
|
||||||
|
Plug 'SirVer/ultisnips'
|
||||||
|
|
||||||
|
" WINDOW MANAGEMENT
|
||||||
|
" ===================
|
||||||
|
|
||||||
|
" tmux navigator
|
||||||
|
Plug 'christoomey/vim-tmux-navigator'
|
||||||
|
|
||||||
|
" winresizer
|
||||||
|
Plug 'simeji/winresizer'
|
||||||
|
|
||||||
|
" goyo
|
||||||
|
Plug 'junegunn/goyo.vim'
|
||||||
|
|
||||||
|
" FILE MANAGEMENT
|
||||||
|
" ===================
|
||||||
|
|
||||||
|
" nerd-tree
|
||||||
|
Plug 'scrooloose/nerdtree'
|
||||||
|
|
||||||
|
" fzf plugin
|
||||||
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
|
Plug 'junegunn/fzf.vim'
|
||||||
|
|
||||||
|
" vimwiki
|
||||||
|
Plug 'vimwiki/vimwiki'
|
||||||
|
|
||||||
|
" GIT STUFF
|
||||||
|
" ===================
|
||||||
|
|
||||||
|
" git
|
||||||
|
Plug 'tpope/vim-fugitive'
|
||||||
|
|
||||||
|
" vim gitgutter
|
||||||
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
|
||||||
|
" COLORS
|
||||||
|
" ===================
|
||||||
|
|
||||||
|
" Plastic colorscheme
|
||||||
|
Plug 'aonemd/kuroi.vim'
|
||||||
|
|
||||||
|
" Color higlighting
|
||||||
|
Plug 'norcalli/nvim-colorizer.lua'
|
||||||
|
|
||||||
|
" powerline
|
||||||
|
Plug 'vim-airline/vim-airline'
|
||||||
|
|
||||||
|
" LANGUAGES
|
||||||
|
" ===================
|
||||||
|
|
||||||
|
" Linting
|
||||||
|
Plug 'dense-analysis/ale'
|
||||||
|
|
||||||
|
" disable latex before loading
|
||||||
|
let g:polyglot_disabled = ["latex"]
|
||||||
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
|
||||||
|
" latex
|
||||||
|
Plug 'lervag/vimtex'
|
||||||
|
|
||||||
|
" Emmet
|
||||||
|
Plug 'mattn/emmet-vim'
|
||||||
|
|
||||||
|
" All of your Plugins must be added before the following line
|
||||||
|
call plug#end()
|
83
setup.sh
83
setup.sh
|
@ -1,83 +0,0 @@
|
||||||
#!/bin/bash
|
|
||||||
|
|
||||||
commandExists()
|
|
||||||
{
|
|
||||||
command -v "$1" >/dev/null 2>&1
|
|
||||||
}
|
|
||||||
|
|
||||||
backupFilesIfExists()
|
|
||||||
{
|
|
||||||
if [ -f $1 ] || [ -h $1 ] || [ -d $1 ]; then
|
|
||||||
printf "Found $1. Backing up to $1.pre-dotfiles\n";
|
|
||||||
mv $1 $1.pre-dotfiles;
|
|
||||||
fi
|
|
||||||
}
|
|
||||||
|
|
||||||
# remove all current dotfiles
|
|
||||||
echo '[INFO] Removing current dotfiles...'
|
|
||||||
backupFilesIfExists ~/.zshrc
|
|
||||||
backupFilesIfExists ~/.vimrc
|
|
||||||
backupFilesIfExists ~/.vim
|
|
||||||
backupFilesIfExists ~/.inputrc
|
|
||||||
backupFilesIfExists ~/.tmux.conf
|
|
||||||
backupFilesIfExists ~/.atom
|
|
||||||
|
|
||||||
# create symbolic links to dotfiles
|
|
||||||
echo '[INFO] Creating symlinks to new config files in .dotfiles...'
|
|
||||||
ln -s ~/.dotfiles/.vimrc ~/.vimrc
|
|
||||||
ln -s ~/.dotfiles/.zshrc ~/.zshrc
|
|
||||||
ln -s ~/.dotfiles/.vim ~/.vim
|
|
||||||
ln -s ~/.dotfiles/.inputrc ~/.inputrc
|
|
||||||
ln -s ~/.dotfiles/tmux.conf ~/.tmux.conf
|
|
||||||
ln -s ~/.dotfiles/.atom ~/.atom
|
|
||||||
|
|
||||||
# install artisan plugin
|
|
||||||
if ! [ -d ~/.oh-my-zsh/custom/plugins/artisan ]; then
|
|
||||||
echo '[INFO] Installing artisan plugin...'
|
|
||||||
git clone https://github.com/jessarcher/zsh-artisan.git ~/.oh-my-zsh/custom/plugins/artisan
|
|
||||||
else
|
|
||||||
echo '[INFO] artisan plugin already installed.'
|
|
||||||
fi
|
|
||||||
|
|
||||||
# install vundle
|
|
||||||
if ! [ -d ~/.vim/bundle/Vundle.vim ]; then
|
|
||||||
echo '[INFO] Installing Vundle...'
|
|
||||||
git clone https://github.com/VundleVim/Vundle.vim.git ~/.vim/bundle/Vundle.vim
|
|
||||||
else
|
|
||||||
echo '[INFO] Vundle is already installed.'
|
|
||||||
fi
|
|
||||||
|
|
||||||
if commandExists vim; then
|
|
||||||
echo '[INFO] Installing vim plugins via Vundle...'
|
|
||||||
vim +PluginInstall +qall
|
|
||||||
else
|
|
||||||
echo '[INFO] Vim is not installed, could not install the plugins.'
|
|
||||||
fi
|
|
||||||
|
|
||||||
# if atom is installed install packages
|
|
||||||
if commandExists atom; then
|
|
||||||
if commandExists apm; then
|
|
||||||
if [ -f ~/.dotfiles/.atom/packages.list ]; then
|
|
||||||
read -p "Do you want to install your atom packages? (y/n) " answer
|
|
||||||
case ${answer:0:1} in
|
|
||||||
y|Y )
|
|
||||||
echo '[INFO] Installing atom packages, this can take a while...'
|
|
||||||
apm install --packages-file ~/.dotfiles/.atom/packages.list
|
|
||||||
;;
|
|
||||||
* )
|
|
||||||
echo '[INFO] Skipping atom package installation'
|
|
||||||
;;
|
|
||||||
esac
|
|
||||||
|
|
||||||
else
|
|
||||||
echo '[INFO] Cannot find packages.list skipping atom package installation.'
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo '[INFO] Atom is installed but the apm command is not available. Cannot import atom packages!'
|
|
||||||
fi
|
|
||||||
else
|
|
||||||
echo '[INFO] Skipping atom configuration because it seems like you did not install atom yet!'
|
|
||||||
fi
|
|
||||||
|
|
||||||
echo 'Finished setup...'
|
|
||||||
echo 'You should restart your terminal to see the changes.'
|
|
2
shell/.gitignore
vendored
Normal file
2
shell/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
localcommands
|
||||||
|
plugins
|
1
shell/localcommands.example
Normal file
1
shell/localcommands.example
Normal file
|
@ -0,0 +1 @@
|
||||||
|
alias vi="vim"
|
9
shell/plugins.example
Normal file
9
shell/plugins.example
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
# plugins
|
||||||
|
plugins=(
|
||||||
|
git
|
||||||
|
pip
|
||||||
|
screen
|
||||||
|
artisan
|
||||||
|
fzf
|
||||||
|
z
|
||||||
|
)
|
|
@ -13,18 +13,19 @@ bind-key -T copy-mode-vi C-j select-pane -D
|
||||||
bind-key -T copy-mode-vi C-k select-pane -U
|
bind-key -T copy-mode-vi C-k select-pane -U
|
||||||
bind-key -T copy-mode-vi C-l select-pane -R
|
bind-key -T copy-mode-vi C-l select-pane -R
|
||||||
|
|
||||||
# default statusbar colors
|
|
||||||
set-option -g status-bg black
|
|
||||||
|
|
||||||
# reload tmux.conf with <prefix>-r
|
# reload tmux.conf with <prefix>-r
|
||||||
unbind r
|
unbind r
|
||||||
bind r \
|
bind r \
|
||||||
source-file ~/.tmux.conf \;\
|
source-file ~/.tmux.conf \;\
|
||||||
display 'Reloaded tmux config'
|
display 'Reloaded tmux config'
|
||||||
|
|
||||||
# pane number display
|
bind -n M-h previous-window
|
||||||
set-option -g display-panes-active-colour blue #blue
|
bind -n M-l next-window
|
||||||
set-option -g display-panes-colour brightred #orange
|
bind -n M-j switch-client -n
|
||||||
|
bind -n M-k switch-client -p
|
||||||
|
bind -n M-k switch-client -p
|
||||||
|
|
||||||
|
bind-key -n M-s set-option status
|
||||||
|
|
||||||
# start numbering at 1
|
# start numbering at 1
|
||||||
set -g base-index 1
|
set -g base-index 1
|
||||||
|
@ -34,22 +35,26 @@ set -g pane-base-index 1
|
||||||
set -g status-interval 10
|
set -g status-interval 10
|
||||||
|
|
||||||
# clock
|
# clock
|
||||||
set-window-option -g clock-mode-colour green #green
|
set-window-option -g clock-mode-colour green
|
||||||
|
|
||||||
# bell
|
# bell
|
||||||
set-window-option -g window-status-bell-style fg=black,bg=red #base02, red
|
set-window-option -g window-status-bell-style fg=black,bg=red
|
||||||
|
|
||||||
|
# default statusbar colors
|
||||||
|
set-option -g status-bg black
|
||||||
|
|
||||||
# term color
|
# term color
|
||||||
set -g default-terminal "screen-256color"
|
set -g default-terminal "screen-256color"
|
||||||
|
set-option -ga terminal-overrides ",xterm-256color:Tc"
|
||||||
|
|
||||||
# right status
|
# right status
|
||||||
set -g status-right '#[fg=colour3]#[fg=colour1]#[bg=colour1]#[fg=colour7] %H:%M %d-%b '
|
set -g status-right '#[fg=#51000f]#[bg=#51000f]#[fg=#ffffff] %H:%M %d-%b '
|
||||||
|
|
||||||
# left status
|
# left status
|
||||||
set -g status-left '#[bg=colour1]#[fg=colour0]#{?client_prefix,#[bg=colour2],} ❐ #[bg=colour8]#[fg=colour1]#{?client_prefix,#[fg=colour2],}#{?window_zoomed_flag, 🔍 ,}#[fg=colour1] '
|
set -g status-left '#[bg=#1A202C]#[fg=#ffffff]#{?client_prefix,#[bg=#51000f],} ❐ #[bg=colour8]#[fg=#1A202C]#{?client_prefix,#[fg=#51000f],}#{?window_zoomed_flag, #[fg=colour7]🔍 ,} '
|
||||||
|
|
||||||
# current window status
|
# current window status
|
||||||
set -g window-status-current-format "#[fg=colour8]#[bg=colour1]#[fg=colour7]#[bg=colour1] #I #[fg=colour7] #W #[fg=colour1]#[bg=colour8]"
|
set -g window-status-current-format "#[fg=colour8]#[bg=#51000f]#[fg=colour7]#[bg=#51000f] #I #[fg=colour7] #W #[fg=#51000f]#[bg=colour8]"
|
||||||
|
|
||||||
# normal window status
|
# normal window status
|
||||||
set -g window-status-format "#[fg=colour244]#[bg=colour8]#I #[fg=colour240] #W"
|
set -g window-status-format "#[fg=colour244]#[bg=colour8]#I #[fg=colour240] #W"
|
||||||
|
@ -57,10 +62,4 @@ set -g window-status-format "#[fg=colour244]#[bg=colour8]#I #[fg=colour240] #
|
||||||
# escape time
|
# escape time
|
||||||
set-option -sg escape-time 10
|
set-option -sg escape-time 10
|
||||||
|
|
||||||
# COLOURS
|
set -g status-justify "left"
|
||||||
#colour0 (black)
|
|
||||||
#colour1 (red)
|
|
||||||
#colour2 (green)
|
|
||||||
#colour3 (yellow)
|
|
||||||
#colour4 (blue)
|
|
||||||
#colour7 (white)
|
|
|
@ -4,21 +4,21 @@ export ZSH="$HOME/.oh-my-zsh"
|
||||||
ZSH_THEME="robbyrussell"
|
ZSH_THEME="robbyrussell"
|
||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
plugins=(
|
if [ -f ~/.dotfiles/shell/plugins ]
|
||||||
git
|
then
|
||||||
pip
|
source ~/.dotfiles/shell/plugins
|
||||||
docker
|
else
|
||||||
command-not-found
|
plugins=(
|
||||||
screen
|
git
|
||||||
dirhistory
|
pip
|
||||||
gradle
|
screen
|
||||||
per-directory-history
|
z
|
||||||
fzf
|
)
|
||||||
artisan
|
fi
|
||||||
)
|
|
||||||
|
|
||||||
source $ZSH/oh-my-zsh.sh
|
source $ZSH/oh-my-zsh.sh
|
||||||
|
|
||||||
|
|
||||||
# User configuration
|
# User configuration
|
||||||
|
|
||||||
# Helper Functions
|
# Helper Functions
|
||||||
|
@ -32,12 +32,14 @@ export EDITOR='vim'
|
||||||
|
|
||||||
# aliases
|
# aliases
|
||||||
alias ll='ls -l'
|
alias ll='ls -l'
|
||||||
alias vi='vim'
|
|
||||||
alias la='ls -la'
|
alias la='ls -la'
|
||||||
alias :q='exit'
|
alias :q='exit'
|
||||||
|
alias fresh="source ~/.zshrc"
|
||||||
|
|
||||||
if [ -f ~/.dotfiles/.localcommands ]; then
|
# localcommands
|
||||||
source ~/.dotfiles/.localcommands
|
if [ -f ~/.dotfiles/shell/localcommands ]
|
||||||
|
then
|
||||||
|
source ~/.dotfiles/shell/localcommands
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Tmuxinator autocomplete
|
# Tmuxinator autocomplete
|
||||||
|
@ -52,4 +54,10 @@ fi
|
||||||
|
|
||||||
export FZF_ALT_C_COMMAND='find . -type d'
|
export FZF_ALT_C_COMMAND='find . -type d'
|
||||||
|
|
||||||
export PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin"
|
if _has ruby;
|
||||||
|
then
|
||||||
|
export PATH="$PATH:$(ruby -e 'print Gem.user_dir')/bin"
|
||||||
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
[ -f ~/.fzf.zsh ] && source ~/.fzf.zsh
|
2
vim/.gitignore
vendored
Normal file
2
vim/.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
vim/bundle/*
|
||||||
|
vim/autoload
|
|
@ -11,6 +11,10 @@ snippet tag "generic Element"
|
||||||
</$1>
|
</$1>
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet tags "generic Element self closing"
|
||||||
|
<${1:tag}${2: class="$3"} />$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet tagi "generic inline Element"
|
snippet tagi "generic inline Element"
|
||||||
<${1:tag}${2: class="$3"}>$4</$1>$0
|
<${1:tag}${2: class="$3"}>$4</$1>$0
|
||||||
endsnippet
|
endsnippet
|
|
@ -1,11 +1,3 @@
|
||||||
snippet s "symbol"
|
|
||||||
\\$0
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet mb "Math Braces"
|
|
||||||
\\{ $1 \\}$0
|
|
||||||
endsnippet
|
|
||||||
|
|
||||||
snippet mal "Math inline"
|
snippet mal "Math inline"
|
||||||
$ $1 $$0
|
$ $1 $$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
@ -30,6 +22,10 @@ snippet abs "Absolute" i
|
||||||
\\lvert $1 \\rvert$0
|
\\lvert $1 \\rvert$0
|
||||||
endsnippet
|
endsnippet
|
||||||
|
|
||||||
|
snippet mb "Math Braces"
|
||||||
|
\\{ $1 \\}$0
|
||||||
|
endsnippet
|
||||||
|
|
||||||
snippet fra "Fraction" i
|
snippet fra "Fraction" i
|
||||||
\frac\{${1:numerator}\}\{${2:demoninator}\}$0
|
\frac\{${1:numerator}\}\{${2:demoninator}\}$0
|
||||||
endsnippet
|
endsnippet
|
|
@ -1,4 +1,5 @@
|
||||||
snippet plug "Plugin Snippet"
|
snippet plug "Plugin Snippet"
|
||||||
" $1
|
" $2
|
||||||
Plugin '$0'
|
Plug '$1'
|
||||||
|
$0
|
||||||
endsnippet
|
endsnippet
|
2
vim/vim/snipps/vue.snippets
Normal file
2
vim/vim/snipps/vue.snippets
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
extends html
|
||||||
|
|
|
@ -1,76 +1,69 @@
|
||||||
set nocompatible " required
|
set nocompatible " required
|
||||||
filetype off " required
|
|
||||||
|
|
||||||
" set the runtime path to include Vundle and initialize
|
" set the runtime path to include Vundle and initialize
|
||||||
set rtp+=~/.vim/bundle/Vundle.vim
|
call plug#begin('~/.vim/bundle')
|
||||||
call vundle#begin()
|
|
||||||
|
|
||||||
" let Vundle manage Vundle, required
|
|
||||||
Plugin 'VundleVim/Vundle.vim'
|
|
||||||
|
|
||||||
" add all your plugins here (note older versions of Vundle
|
|
||||||
" used Bundle instead of Plugin)
|
|
||||||
|
|
||||||
" USEFUL
|
" USEFUL
|
||||||
" comment plugin
|
" comment plugin
|
||||||
Plugin 'tpope/vim-commentary'
|
Plug 'tpope/vim-commentary'
|
||||||
|
|
||||||
" brackets management
|
" brackets management
|
||||||
Plugin 'machakann/vim-sandwich'
|
Plug 'tpope/vim-surround'
|
||||||
|
|
||||||
" snippets
|
" snippets
|
||||||
Plugin 'SirVer/ultisnips'
|
Plug 'SirVer/ultisnips'
|
||||||
|
|
||||||
" WINDOW MANAGEMENT
|
" WINDOW MANAGEMENT
|
||||||
" tmux navigator
|
" tmux navigator
|
||||||
Plugin 'christoomey/vim-tmux-navigator'
|
Plug 'christoomey/vim-tmux-navigator'
|
||||||
|
|
||||||
" winresizer
|
" winresizer
|
||||||
Plugin 'simeji/winresizer'
|
Plug 'simeji/winresizer'
|
||||||
|
|
||||||
" FILE MANAGEMENT
|
" FILE MANAGEMENT
|
||||||
" nert-tree
|
" nert-tree
|
||||||
Plugin 'scrooloose/nerdtree'
|
Plug 'scrooloose/nerdtree'
|
||||||
|
|
||||||
" fzf plugin
|
" fzf plugin
|
||||||
Plugin 'junegunn/fzf.vim'
|
Plug 'junegunn/fzf.vim'
|
||||||
|
|
||||||
" GIT STUFF
|
" GIT STUFF
|
||||||
" git
|
" git
|
||||||
Plugin 'tpope/vim-fugitive'
|
Plug 'tpope/vim-fugitive'
|
||||||
|
|
||||||
" vim gitgutter
|
" vim gitgutter
|
||||||
Plugin 'airblade/vim-gitgutter'
|
Plug 'airblade/vim-gitgutter'
|
||||||
|
|
||||||
" COLORS
|
" COLORS
|
||||||
" color schemes
|
" Plastic colorscheme
|
||||||
Plugin 'flazz/vim-colorschemes'
|
Plug 'aonemd/kuroi.vim'
|
||||||
|
|
||||||
" powerline
|
" powerline
|
||||||
Plugin 'vim-airline/vim-airline'
|
Plug 'vim-airline/vim-airline'
|
||||||
Plugin 'vim-airline/vim-airline-themes'
|
Plug 'vim-airline/vim-airline-themes'
|
||||||
|
|
||||||
" LANGUAGE SUPPORT
|
" LANGUAGE SUPPORT
|
||||||
" vim ale for interaction with language servers
|
" vim ale for interaction with language servers
|
||||||
Plugin 'w0rp/ale'
|
Plug 'w0rp/ale'
|
||||||
|
|
||||||
" editorconfig plugin
|
" editorconfig plugin
|
||||||
Plugin 'editorconfig/editorconfig-vim'
|
Plug 'editorconfig/editorconfig-vim'
|
||||||
|
|
||||||
" language packs
|
" language packs
|
||||||
Plugin 'sheerun/vim-polyglot'
|
Plug 'sheerun/vim-polyglot'
|
||||||
|
|
||||||
" latex
|
" latex
|
||||||
Plugin 'lervag/vimtex'
|
Plug 'lervag/vimtex'
|
||||||
|
|
||||||
" All of your Plugins must be added before the following line
|
call plug#end() " required
|
||||||
call vundle#end() " required
|
|
||||||
filetype plugin indent on " required
|
filetype plugin indent on " required
|
||||||
|
|
||||||
" syntax
|
" syntax
|
||||||
syntax on
|
syntax on
|
||||||
colorscheme Benokai
|
colorscheme kuroi
|
||||||
|
set background=dark
|
||||||
let mapleader=" "
|
let mapleader=" "
|
||||||
|
hi MatchParen cterm=bold ctermbg=NONE ctermfg=red
|
||||||
|
|
||||||
" random settings
|
" random settings
|
||||||
set number
|
set number
|
||||||
|
@ -115,6 +108,9 @@ nnoremap <leader>t :tabnew<CR>
|
||||||
nnoremap <C-n> gT
|
nnoremap <C-n> gT
|
||||||
nnoremap <C-p> gt
|
nnoremap <C-p> gt
|
||||||
|
|
||||||
|
" search for visual selection
|
||||||
|
vnoremap // y/<C-R>"<CR>
|
||||||
|
|
||||||
" Enable folding
|
" Enable folding
|
||||||
set foldmethod=indent
|
set foldmethod=indent
|
||||||
set foldlevel=99
|
set foldlevel=99
|
||||||
|
@ -237,7 +233,7 @@ let g:airline_section_y = ""
|
||||||
let g:airline_section_z = "%l/%L:%c"
|
let g:airline_section_z = "%l/%L:%c"
|
||||||
let g:airline_section_b = "%{airline#util#wrap(airline#extensions#branch#get_head(),0)}"
|
let g:airline_section_b = "%{airline#util#wrap(airline#extensions#branch#get_head(),0)}"
|
||||||
" other stuff
|
" other stuff
|
||||||
let g:airline_theme='solarized'
|
let g:airline_theme='luna'
|
||||||
let g:airline_solarized_bg='dark'
|
let g:airline_solarized_bg='dark'
|
||||||
let g:airline_powerline_fonts = 1
|
let g:airline_powerline_fonts = 1
|
||||||
let g:airline_inactive_collapse=1
|
let g:airline_inactive_collapse=1
|
||||||
|
@ -259,7 +255,7 @@ augroup END
|
||||||
|
|
||||||
" fzf setup
|
" fzf setup
|
||||||
nmap <C-y> :Buffers<CR>
|
nmap <C-y> :Buffers<CR>
|
||||||
nmap <Leader>f :Files<CR>
|
nmap <Leader>f :GFiles<CR>
|
||||||
let g:fzf_buffers_jump = 1
|
let g:fzf_buffers_jump = 1
|
||||||
|
|
||||||
" vim-ale setup
|
" vim-ale setup
|
Loading…
Add table
Reference in a new issue