Added usefull programming plugins to neovim
This commit is contained in:
@@ -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
Submodule nvim/.nvim/plugged/OmniCppComplete added at 2fac015957
Submodule nvim/.nvim/plugged/YouCompleteMe deleted from b9dd9096a3
1
nvim/.nvim/plugged/supertab
Submodule
1
nvim/.nvim/plugged/supertab
Submodule
Submodule nvim/.nvim/plugged/supertab added at c8bfeceb1f
1
nvim/.nvim/plugged/tlib_vim
Submodule
1
nvim/.nvim/plugged/tlib_vim
Submodule
Submodule nvim/.nvim/plugged/tlib_vim added at c9ffbef071
1
nvim/.nvim/plugged/vim-addon-mw-utils
Submodule
1
nvim/.nvim/plugged/vim-addon-mw-utils
Submodule
Submodule nvim/.nvim/plugged/vim-addon-mw-utils added at 0c5612fa31
1
nvim/.nvim/plugged/vim-snipmate
Submodule
1
nvim/.nvim/plugged/vim-snipmate
Submodule
Submodule nvim/.nvim/plugged/vim-snipmate added at c86c64508a
1
nvim/.nvim/plugged/vim-snippets
Submodule
1
nvim/.nvim/plugged/vim-snippets
Submodule
Submodule nvim/.nvim/plugged/vim-snippets added at c5af9b925f
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>
|
||||
|
||||
Reference in New Issue
Block a user