nvim dotfile
This commit is contained in:
42
init.vim
Normal file
42
init.vim
Normal file
@@ -0,0 +1,42 @@
|
||||
set number
|
||||
set autoindent
|
||||
set termguicolors
|
||||
set cursorline
|
||||
call plug#begin()
|
||||
Plug 'preservim/nerdtree'
|
||||
Plug 'itchyny/lightline.vim'
|
||||
Plug 'gilgigilgil/anderson.vim'
|
||||
Plug 'sainnhe/sonokai'
|
||||
call plug#end()
|
||||
|
||||
" Start NERDTree. If a file is specified, move the cursor to its window.
|
||||
autocmd StdinReadPre * let s:std_in=1
|
||||
autocmd VimEnter * NERDTree | if argc() > 0 || exists("s:std_in") | wincmd p | endif
|
||||
autocmd BufEnter * if tabpagenr('$') == 1 && winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif
|
||||
|
||||
nnoremap <leader>n :NERDTreeFocus<CR>
|
||||
nnoremap <C-t> :NERDTreeToggle<CR>
|
||||
|
||||
let g:NERDTreeGitStatusWithFlags = 1
|
||||
"let g:WebDevIconsUnicodeDecorateFolderNodes = 1
|
||||
"let g:NERDTreeGitStatusNodeColorization = 1
|
||||
"let g:NERDTreeColorMapCustom = {
|
||||
"\ "Staged" : "#0ee375",
|
||||
"\ "Modified" : "#d9bf91",
|
||||
"\ "Renamed" : "#51C9FC",
|
||||
"\ "Untracked" : "#FCE77C",
|
||||
"\ "Unmerged" : "#FC51E6",
|
||||
"\ "Dirty" : "#FFBD61",
|
||||
"\ "Clean" : "#87939A",
|
||||
"\ "Ignored" : "#808080"
|
||||
"\ }
|
||||
|
||||
|
||||
let g:NERDTreeIgnore = ['^node_modules$']
|
||||
|
||||
let g:airline_powerline_fonts = 1
|
||||
|
||||
let g:sonokai_style = 'shusia'
|
||||
let g:sonokai_better_performance = 1
|
||||
|
||||
colorscheme sonokai
|
||||
Reference in New Issue
Block a user