aboutsummaryrefslogtreecommitdiff
path: root/nvim/.config
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--nvim/.config/nvim/init.vim80
1 files changed, 71 insertions, 9 deletions
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim
index 559dde3..02a98a9 100644
--- a/nvim/.config/nvim/init.vim
+++ b/nvim/.config/nvim/init.vim
@@ -21,7 +21,7 @@ Plugin 'VundleVim/Vundle.vim'
"Plugin 'benekastah/neomake'
" Autocomplete for python
-Plugin 'davidhalter/jedi-vim'
+"Plugin 'davidhalter/jedi-vim'
" Remove extraneous whitespace when edit mode is exited
"Plugin 'thirtythreeforty/lessspace.vim'
@@ -48,7 +48,14 @@ Plugin 'scrooloose/nerdtree'
Plugin 'Xuyuanp/nerdtree-git-plugin'
" Global Auto Completion
-Plugin 'ajh17/VimCompletesMe'
+"Plugin 'ajh17/VimCompletesMe'
+
+" Plugin for complete like an IDE
+Plugin 'Valloric/YouCompleteMe'
+
+" Use this plugin if use YouCompleteMe
+" Autoclose thnings like brackets
+Plugin 'Raimondi/delimitMate'
" PHP Auto Completion
"Plugin 'shawncplus/phpcomplete.vim'
@@ -57,7 +64,7 @@ Plugin 'ajh17/VimCompletesMe'
Plugin 'pangloss/vim-javascript'
" Syntax checker
-"Plugin 'scrooloose/syntastic'
+Plugin 'scrooloose/syntastic'
" Git command managament from nvim
"Plugin 'tpope/vim-fugitive'
@@ -107,7 +114,7 @@ Plugin 'leafgarland/typescript-vim'
Plugin 'Quramy/tsuquyomi'
" Linter for TypeScript
-Plugin 'palantir/tslint'
+"Plugin 'palantir/tslint'
"Plugin 'FredKSchott/CoVim'
@@ -154,12 +161,12 @@ Plugin 'cespare/vim-toml'
Plugin 'ryanoasis/vim-devicons'
" Vim linter
-Plugin 'Kuniwak/vint'
+"Plugin 'Kuniwak/vint'
" fuck this shit
" Plugin Asynchronous Lint Engine (linter)
" Check https://github.com/w0rp/ale#supported-languages for more info
-"Plugin 'w0rp/ale'
+Plugin 'w0rp/ale'
" Latex plugin for writting documents
"Plugin 'lervag/vimtex'
@@ -168,8 +175,8 @@ Plugin 'Kuniwak/vint'
"Plugin 'mhinz/vim-startify'
-" Dependance for other plugins
-"Plugin 'Shougo/deoplete.nvim'
+" Autocompletion framework
+Plugin 'Shougo/deoplete.nvim'
" Use snippet
"Plugin 'Shougo/neosnippet.vim'
@@ -189,7 +196,8 @@ Plugin 'Kuniwak/vint'
" Use sudo in vim
"Plugin 'lambdalisue/suda.vim'
-"Plugin 'junegunn/fzf.vim'
+" fzf plugin for vim
+Plugin 'junegunn/fzf.vim'
"Plugin 'Glench/Vim-Jinja2-Syntax'
@@ -199,6 +207,9 @@ Plugin 'mikelue/vim-maven-plugin'
" auto detect indentation style
Plugin 'tpope/vim-sleuth'
+" Indentation for working on salt files
+Plugin 'saltstack/salt-vim'
+
" After all plugins...
call vundle#end()
filetype plugin indent on
@@ -436,3 +447,54 @@ inoremap <silent><expr> <C-Space> deoplete#mappings#manual_complete()
inoremap <silent><expr> <Esc> pumvisible() ? "<C-e><Esc>" : "<Esc>"
set enc=utf-8
+
+" === fzf plugin conf ===
+
+" This is the default extra key bindings
+let g:fzf_action = {
+ \ 'ctrl-t': 'tab split',
+ \ 'ctrl-x': 'split',
+ \ 'ctrl-v': 'vsplit' }
+
+" Default fzf layout
+" - down / up / left / right
+let g:fzf_layout = { 'down': '~40%' }
+
+" In Neovim, you can set up fzf window using a Vim command
+let g:fzf_layout = { 'window': 'enew' }
+let g:fzf_layout = { 'window': '-tabnew' }
+let g:fzf_layout = { 'window': '10split enew' }
+
+" Customize fzf colors to match your color scheme
+let g:fzf_colors =
+\ { 'fg': ['fg', 'Normal'],
+ \ 'bg': ['bg', 'Normal'],
+ \ 'hl': ['fg', 'Comment'],
+ \ 'fg+': ['fg', 'CursorLine', 'CursorColumn', 'Normal'],
+ \ 'bg+': ['bg', 'CursorLine', 'CursorColumn'],
+ \ 'hl+': ['fg', 'Statement'],
+ \ 'info': ['fg', 'PreProc'],
+ \ 'border': ['fg', 'Ignore'],
+ \ 'prompt': ['fg', 'Conditional'],
+ \ 'pointer': ['fg', 'Exception'],
+ \ 'marker': ['fg', 'Keyword'],
+ \ 'spinner': ['fg', 'Label'],
+ \ 'header': ['fg', 'Comment'] }
+
+" Enable per-command history.
+" CTRL-N and CTRL-P will be automatically bound to next-history and
+" previous-history instead of down and up. If you don't like the change,
+" explicitly bind the keys to down and up in your $FZF_DEFAULT_OPTS.
+let g:fzf_history_dir = '~/.local/share/fzf-history'
+
+" [Buffers] Jump to the existing window if possible
+let g:fzf_buffers_jump = 1
+
+" [[B]Commits] Customize the options used by 'git log':
+let g:fzf_commits_log_options = '--graph --color=always --format="%C(auto)%h%d %s %C(black)%C(bold)%cr"'
+
+" [Tags] Command to generate tags file
+let g:fzf_tags_command = 'ctags -R'
+
+" [Commands] --expect expression for directly executing the command
+let g:fzf_commands_expect = 'alt-enter,ctrl-x'