add neovim config

This commit is contained in:
altffour 2020-12-14 08:35:11 +03:00
parent c4e640cc2d
commit 62211ddbfd
No known key found for this signature in database
GPG Key ID: B4ADFA86EDF5CCE9
13 changed files with 72 additions and 0 deletions

4
.config/nvim/.netrwhist Normal file
View File

@ -0,0 +1,4 @@
let g:netrw_dirhistmax =10
let g:netrw_dirhistcnt =2
let g:netrw_dirhist_2='/home/dizzy/proj/PaperTrader/src/libtrader/common/misc'
let g:netrw_dirhist_1='/home/dizzy/proj/sysconf'

57
.config/nvim/init.vim Executable file
View File

@ -0,0 +1,57 @@
call plug#begin()
Plug 'Shougo/deoplete.nvim', {'do': ':UpdateRemotePlugins'}
Plug 'scrooloose/nerdTree'
Plug 'ctrlpvim/ctrlp.vim'
Plug 'bling/vim-airline'
Plug 'tpope/vim-fugitive'
Plug 'vimwiki/vimwiki'
Plug 'dylanaraps/wal.vim'
call plug#end()
filetype plugin indent on
" Setup theme.
set t_Co=256
colorscheme wal
let g:airline_themes='onedark'
" Setup Global Indentation
"set shiftwidth=4
"set tabstop=4
"set autoindent
set tabstop=4
set softtabstop=4
set shiftwidth=4
set textwidth=79
set expandtab
set autoindent
set fileformat=unix
" Language specific Indentation
autocmd Filetype cpp setlocal noexpandtab cindent smartindent tabstop=4 shiftwidth=4
autocmd Filetype python setlocal noexpandtab tabstop=8 shiftwidth=4
" .tpp as cpp
autocmd BufEnter *.tpp :setlocal filetype=cpp
" .py as python
autocmd BufEnter *.py :setlocal filetype=python
" Custom settings.
set mouse=a
set number
set encoding=utf-8
set backspace=indent,eol,start
set ttimeoutlen=50
syntax on
set rnu
" KeyBinds.
inoremap <expr><C-j> pumvisible()? "\<C-n>":"\<C-j>"
inoremap <expr><C-k> pumvisible()? "\<C-p>":"\<C-k>"
nmap <C-n> :NERDTreeToggle<CR>
inoremap jk <ESC>
" open NERDTree automatically when neovim starts up on opening directory
autocmd StdinReadPre * let s:std_in=1
autocmd VimEnter * if argc() == 1 && isdirectory(argv()[0]) && !exists("s:std_in") | exe 'NERDTree' argv()[0] | wincmd p | ene | endif

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

@ -0,0 +1 @@
Subproject commit 2786058b9022ce6e50db7f75088e69e07185e52c

@ -0,0 +1 @@
Subproject commit 895fafe572585b807a31d4ba2835188d7b38cc41

@ -0,0 +1 @@
Subproject commit 491d83c50c9b17c896850bbd7ec00f2019e2f110

@ -0,0 +1 @@
Subproject commit 577ddc73f0a1d2fd6166ed3268ab8536111037e0

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

@ -0,0 +1 @@
Subproject commit 95593b67723f23979cd7344ecfd049f2f917830f

@ -0,0 +1 @@
Subproject commit 511d3035d4da2453a9cb0188b6020ed7bc8fc18f

@ -0,0 +1 @@
Subproject commit 60ba5e11a61618c0344e2db190210145083c91f8

@ -0,0 +1 @@
Subproject commit 619f04f89861c58e5a6415a4f83847752928252d

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