set relativenumber set autoindent set termguicolors set cursorline set ts=4 sw=4 "gets rid of --INSERT-- useful bc of lighline" set noshowmode call plug#begin() "file explorer" Plug 'preservim/nerdtree' "status line" Plug 'itchyny/lightline.vim' "color themes" Plug 'gilgigilgil/anderson.vim' Plug 'sainnhe/sonokai' "automatic parentheses" Plug 'jiangmiao/auto-pairs' "syntax highlighting" Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} call plug#end() let $NVIM_TUI_ENABLE_TRUE_COLOR=1 " 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:lightline = { \ 'colorscheme': 'wombat', \ } let g:sonokai_style = 'shusia' let g:sonokai_better_performance = 1 colorscheme sonokai lua << EOF require'nvim-treesitter.configs'.setup { -- Install parsers for languages you use ensure_installed = { "c", "cpp", "python", "lua", "vim", "go" }, -- Install all maintained parsers -- ensure_installed = "all", -- Syntax highlighting highlight = { enable = true, additional_vim_regex_highlighting = false, }, -- Indentation based on treesitter (experimental) indent = { enable = true }, -- Incremental selection based on the syntax tree incremental_selection = { enable = true, keymaps = { init_selection = "gnn", node_incremental = "grn", scope_incremental = "grc", node_decremental = "grm", }, }, } EOF