Added usefull programming plugins to neovim
This commit is contained in:
parent
48e3d606d0
commit
2e5cd5cfcd
|
@ -33,6 +33,7 @@
|
|||
" " Unmanaged plugin (manually installed and updated)
|
||||
" Plug '~/my-prototype-plugin'
|
||||
"
|
||||
" " Add plugins to &runtimepath
|
||||
" call plug#end()
|
||||
"
|
||||
" Then reload .vimrc and :PlugInstall to install plugins.
|
||||
|
|
1
nvim/.nvim/plugged/OmniCppComplete
Submodule
1
nvim/.nvim/plugged/OmniCppComplete
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 2fac015957895dffa6b298e3c028ac30560d015b
|
|
@ -1 +0,0 @@
|
|||
Subproject commit b9dd9096a34c1d720878f0058dc3e68f9e9c87ea
|
1
nvim/.nvim/plugged/supertab
Submodule
1
nvim/.nvim/plugged/supertab
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c8bfeceb1fc92ad58f2ae6967cbfcd6fbcb0d6e7
|
1
nvim/.nvim/plugged/tlib_vim
Submodule
1
nvim/.nvim/plugged/tlib_vim
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c9ffbef0718a35bd30eb711456e2100e4adf79f7
|
1
nvim/.nvim/plugged/vim-addon-mw-utils
Submodule
1
nvim/.nvim/plugged/vim-addon-mw-utils
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit 0c5612fa31ee434ba055e21c76f456244b3b5109
|
1
nvim/.nvim/plugged/vim-snipmate
Submodule
1
nvim/.nvim/plugged/vim-snipmate
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c86c64508a5b0309040429460c3a13fb90ac708e
|
1
nvim/.nvim/plugged/vim-snippets
Submodule
1
nvim/.nvim/plugged/vim-snippets
Submodule
|
@ -0,0 +1 @@
|
|||
Subproject commit c5af9b925f9213c290bf5253eac116987516d057
|
15
nvim/.nvim/snippets/cpp.snippets
Normal file
15
nvim/.nvim/snippets/cpp.snippets
Normal file
|
@ -0,0 +1,15 @@
|
|||
#header
|
||||
snippet header
|
||||
#ifndef ${1:`toupper(vim_snippets#Filename('$1_H', 'UNTITLED_H'))`}
|
||||
#define $1
|
||||
|
||||
#include "Standard.h"
|
||||
|
||||
${0}
|
||||
|
||||
#endif
|
||||
|
||||
snippet incl
|
||||
#include "${1:`vim_snippets#Filename('$1.h', 'Untitled.h')`}"
|
||||
|
||||
${0}
|
34
nvim/.nvimrc
34
nvim/.nvimrc
|
@ -13,7 +13,13 @@ Plug 'tommcdo/vim-exchange'
|
|||
Plug 'justinmk/vim-matchparenalways'
|
||||
Plug 'tpope/vim-surround'
|
||||
Plug 'christoomey/vim-tmux-navigator'
|
||||
Plug 'Valloric/YouCompleteMe'
|
||||
Plug 'vim-scripts/OmniCppComplete'
|
||||
Plug 'ervandew/supertab'
|
||||
Plug 'MarcWeber/vim-addon-mw-utils'
|
||||
Plug 'tomtom/tlib_vim'
|
||||
Plug 'garbas/vim-snipmate'
|
||||
Plug 'honza/vim-snippets'
|
||||
" Plug 'Valloric/YouCompleteMe'
|
||||
call plug#end()
|
||||
|
||||
let g:neomake_airline=1
|
||||
|
@ -28,12 +34,15 @@ set t_Co=256
|
|||
set t_ZH=[3m
|
||||
set t_ZR=[23m
|
||||
set background=dark
|
||||
" set background=light
|
||||
|
||||
let g:indentLine_char = '│'
|
||||
|
||||
map <silent> <M-a> :NERDTreeToggle<cr>
|
||||
" map <silent> <M-a> :NERDTreeToggle<cr>
|
||||
map <silent> <F2> :NERDTreeToggle<cr>
|
||||
|
||||
map <silent> <M-2> :TagbarToggle<cr>
|
||||
" map <silent> <M-2> :TagbarToggle<cr>
|
||||
map <silent> <F3> :TagbarToggle<cr>
|
||||
|
||||
let g:airline_powerline_fonts = 1
|
||||
let g:airline#extensions#tabline#enabled = 1
|
||||
|
@ -44,9 +53,23 @@ map <M-j> :TmuxNavigateDown<cr>
|
|||
map <M-k> :TmuxNavigateUp<cr>
|
||||
map <M-l> :TmuxNavigateRight<cr>
|
||||
|
||||
set omnifunc=syntaxcomplete#Complete " override built-in C omnicomplete with C++ OmniCppComplete plugin
|
||||
let OmniCpp_GlobalScopeSearch = 1
|
||||
let OmniCpp_DisplayMode = 1
|
||||
let OmniCpp_ShowScopeInAbbr = 0 "do not show namespace in pop-up
|
||||
let OmniCpp_ShowPrototypeInAbbr = 1 "show prototype in pop-up
|
||||
let OmniCpp_ShowAccess = 1 "show access in pop-up
|
||||
let OmniCpp_SelectFirstItem = 1 "select first item in pop-up
|
||||
set completeopt=menuone,menu,longest
|
||||
|
||||
let g:SuperTabDefaultCompletionType = "<C-X><C-O>"
|
||||
|
||||
" let g:SuperTabDefaultCompletionType = "<c-n>"
|
||||
|
||||
syntax on
|
||||
filetype plugin indent on
|
||||
|
||||
set nocp
|
||||
set smartindent
|
||||
set number
|
||||
set relativenumber
|
||||
|
@ -54,6 +77,7 @@ set laststatus=2
|
|||
set softtabstop=4
|
||||
set shiftwidth=4
|
||||
set noexpandtab
|
||||
set completeopt-=preview
|
||||
|
||||
map <silent> <tab> :bn<cr>
|
||||
map <silent> <S-tab> :bp<cr>
|
||||
|
@ -61,4 +85,6 @@ map <silent> <S-tab> :bp<cr>
|
|||
map <S-J> <pagedown>
|
||||
map <S-K> <pageup>
|
||||
|
||||
map <F9> :Topen gradle build<cr>
|
||||
map <silent> <F9> :make<cr>:cw<cr>
|
||||
map <F10> :!./platformer<cr>
|
||||
map <F12> :!ctags -R --c++-kinds=+p --fields=+iaS --extra=+q .<CR>
|
||||
|
|
Loading…
Reference in New Issue
Block a user