-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feature: add neovim plus config (#15)
* feature: add nvim config * docs: update readme * chore: bump version
- Loading branch information
1 parent
895576a
commit 53107c5
Showing
6 changed files
with
116 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
"-----PLUGIN SETTINGS------- | ||
|
||
" Plugins will be downloaded under the specified directory. | ||
call plug#begin('~/.vim/plugged') | ||
|
||
" Intellisense engine for Vim8 & Neovim | ||
" https://github.com/neoclide/coc.nvim | ||
Plug 'neoclide/coc.nvim', {'branch': 'release'} | ||
|
||
" Lean & mean status/tabline for vim that's light as air | ||
" https://github.com/vim-airline/vim-airline | ||
Plug 'bling/vim-airline' | ||
|
||
" A tree explorer plugin for vim. | ||
" https://github.com/preservim/nerdtree | ||
Plug 'scrooloose/nerdtree' | ||
|
||
" A plugin of NERDTree showing git status | ||
" https://github.com/Xuyuanp/nerdtree-git-plugin | ||
Plug 'Xuyuanp/nerdtree-git-plugin' | ||
|
||
" Extra syntax and highlight for nerdtree files | ||
" https://github.com/tiagofumo/vim-nerdtree-syntax-highlight | ||
Plug 'tiagofumo/vim-nerdtree-syntax-highlight' | ||
|
||
" A Vim plugin which shows git diff markers in the sign column and stages/previews/undoes hunks and partial hunks. | ||
" https://github.com/airblade/vim-gitgutter | ||
Plug 'airblade/vim-gitgutter' | ||
|
||
" Fuzzy file, buffer, mru, tag, etc finder. | ||
" https://github.com/kien/ctrlp.vim | ||
Plug 'ctrlpvim/ctrlp.vim' | ||
|
||
" VIM Darcula Theme | ||
" https://github.com/blueshirts/darcula | ||
Plug 'blueshirts/darcula' | ||
|
||
" List ends here. Plugins become visible to Vim after this call. | ||
call plug#end() | ||
|
||
"-----GENERAL SETTINGS------- | ||
syntax enable | ||
colorscheme darcula | ||
|
||
let g:auto_save = 1 "enable AutoSave on startup | ||
set laststatus=2 "see the current mode, file name, file status, ruler, etc...2 | ||
|
||
set number "Show line numbers | ||
set autoindent "Auto-indent new lines | ||
set shiftwidth=2 "Number of auto-indent spaces | ||
set smartindent "Enable smart-indent | ||
set smarttab "Enable smart-tabs | ||
set softtabstop=2 "Number of spaces per Tab | ||
|
||
set ruler "Show row and column ruler information | ||
set undolevels=1000 "Number of undo levels | ||
set backspace=indent,eol,start "Backspace behaviour | ||
|
||
"-----SEARCH------- | ||
set ignorecase "case insensitive | ||
set smartcase "use case if any caps used | ||
set incsearch "show match as search proceeds | ||
set hlsearch "search highlighting | ||
|
||
autocmd VimEnter * NERDTree "open NERDTree automatically | ||
let g:NERDTreeIgnore = ['^node_modules$'] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
#!/bin/bash | ||
|
||
. $(pwd)/helpers/ask.sh | ||
. $(pwd)/helpers/create_backup.sh | ||
. $(pwd)/helpers/print.sh | ||
|
||
install_vim_plug () { | ||
local file=$HOME/.config/nvim/autoload/plug.vim | ||
|
||
if ! [[ -f $file ]]; then | ||
curl -fLo $file --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim | ||
print_success "Vim Plug installed" | ||
else | ||
print_success "Vim Plug already installed" | ||
fi | ||
} | ||
|
||
copy_vim_plug_configuration () { | ||
local file=$HOME/.config/nvim/init.vim | ||
|
||
if ask "Would you like to copy this vim plug config? ${1}" Y; then | ||
create_backup "nvim" "init.vim" $file | ||
|
||
cp $1 $file | ||
print_success "nvim config updated" | ||
else | ||
print_error "Aborting..." | ||
fi | ||
} | ||
|
||
copy_vim_plug_configuration /Users/juliantellez/github/juliantellez/up/config/nvim/init.vim |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -10,11 +10,11 @@ hub | |
kubectl | ||
kops | ||
mas | ||
neovim | ||
postgresql | ||
redis | ||
tree | ||
terraform | ||
the_silver_searcher | ||
vault | ||
vim | ||
z |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
UP_VERSION="0.1.7" | ||
UP_VERSION="0.2.0" |