Merge branch 'master' of git.maggioni.xyz:maggicl/nvim-config

This commit is contained in:
Claudio Maggioni 2019-02-05 14:55:47 +01:00
commit 7cdb2994fe
3 changed files with 28 additions and 1 deletions

3
.gitmodules vendored
View File

@ -31,3 +31,6 @@
[submodule "pack/plugins/start/gitignore.vim"]
path = pack/plugins/start/gitignore.vim
url = https://github.com/euclio/gitignore.vim
[submodule "pack/plugins/start/vim-go"]
path = pack/plugins/start/vim-go
url = https://github.com/fatih/vim-go.git

View File

@ -28,12 +28,22 @@ set autoindent
" Make :find work on all files in :pwd
set path+=**
set wildignore+=**/node_modules/**
set wildignore+=**/node_modules/**,*~
" set netrw preferred style to tree
let g:netrw_liststyle = 3
" remove netrw top banner
let g:netrw_banner = 0
let g:netrw_list_hide = netrw_gitignore#Hide()
" ADDITIONAL COMMANDS
" emulate system clipboard
inoremap <C-v> <ESC>"+pa
vnoremap <C-c> "+y
inoremap <S-tab> <C-d>
" make escape work in terminal and send ESC to terminal with C-Esc
@ -111,6 +121,19 @@ nnoremap <Leader>R :source ~/.config/nvim/init.vim<CR>
" show Vim's true competitor with: Leader r c m
nnoremap <Leader>rcm :!open https://youtu.be/jn40Ugz0vuk<CR><CR>
" open netrw in directory of current file
nnoremap <Leader>e :Ex<CR>
" close quickfix window with: Leader Q
nnoremap <Leader>Q :ccl<CR>
" Go files: launch go lint quickfix with: Leader q
autocmd FileType go nnoremap <Leader>q :w<CR>:GoLint<CR>
" TypeScript files: launch TypeScript lint quickfix with: Leader q
autocmd FileType typescript nnoremap <Leader>q :TsuQuickFix<CR>
" COLORSCHEME
" set colorscheme to onedark.im for nvim and airline

@ -0,0 +1 @@
Subproject commit a61545f09cad6df2e7a4918cbd6981811f612ae9