commit 148f141406cc95fcd714d3164bd62dcbcf3f4ed7 Author: lightofshadow Date: Mon Mar 11 08:15:31 2024 +0000 nvim dotfile diff --git a/init.vim b/init.vim new file mode 100644 index 0000000..98d9744 --- /dev/null +++ b/init.vim @@ -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 n :NERDTreeFocus +nnoremap :NERDTreeToggle + +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