lua require('plugins') " Load vim config in current directory silent! so .vimlocal " DelimitMate let delimitMate_expand_cr = 1 let delimitMate_expand_space = 1 let delimitMate_balance_matchpairs = 1 " Theme colorscheme gruvbox " colorscheme codedark set t_Co=256 set t_ZH= set t_ZR= set background=dark " Ident " set list lcs=tab:┃\ ,trail:· set list lcs=tab:¦\ ,trail:· " Airline let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 let g:airline_theme='gruvbox' " let g:airline_theme='codedark' let g:airline_section_z = '%3p%% %#__accent_bold#%4l%#__restore__#%#__accent_bold#/%L%#__restore__# :%3v' let g:airline_section_warning = '' if !exists('g:airline_symbols') let g:airline_symbols = {} endif let g:airline_symbols.dirty = " ±" let g:airline_symbols.notexists = " " " NERDTree autocmd bufenter * if (winnr("$") == 1 && exists("b:NERDTree") && b:NERDTree.isTabTree()) | q | endif " Preferences syntax on filetype plugin indent on set smartindent set number set laststatus=2 set softtabstop=4 set tabstop=4 set shiftwidth=4 set noexpandtab set mouse=n set hidden set updatetime=300 set noshowmode " Keybindings map :NERDTreeToggle map :TmuxNavigateLeft map :TmuxNavigateDown map :TmuxNavigateUp map :TmuxNavigateRight map :bn map :bp map 10j map 10k map :Bdelete map :call ToggleQuickfixList() map :noh inoremap pumvisible() ? "\" : "\" inoremap pumvisible() ? "\" : "\" imap pumvisible() ? "\" : "delimitMateBS" imap pumvisible() ? "\\" : "delimitMateCR" nnoremap ff Telescope find_files nnoremap fg Telescope live_grep nnoremap fb Telescope buffers nnoremap lc Telescope lsp_code_actions nnoremap ls Telescope lsp_document_symbols map ln :lua vim.lsp.diagnostic.goto_next() map lp :lua vim.lsp.diagnostic.goto_prev() map ll :lua vim.lsp.buf. map lh :lua vim.lsp.buf.hover() map lf :lua vim.lsp.buf.formatting() let g:closetag_filenames = "*.html,*.xhtml,*.phtml,*.erb,*.jsx,*.tsx" let g:closetag_xhtml_filenames = '*.xhtml,*.jsx,*.tsx,*.erb' " gray highlight! CmpItemAbbrDeprecated guibg=NONE gui=strikethrough guifg=#808080 " blue highlight! CmpItemAbbrMatch guibg=NONE guifg=#569CD6 highlight! CmpItemAbbrMatchFuzzy guibg=NONE guifg=#569CD6 " light blue highlight! CmpItemKindVariable guibg=NONE guifg=#9CDCFE highlight! CmpItemKindInterface guibg=NONE guifg=#9CDCFE highlight! CmpItemKindText guibg=NONE guifg=#9CDCFE " pink highlight! CmpItemKindFunction guibg=NONE guifg=#C586C0 highlight! CmpItemKindMethod guibg=NONE guifg=#C586C0 " front highlight! CmpItemKindKeyword guibg=NONE guifg=#D4D4D4 highlight! CmpItemKindProperty guibg=NONE guifg=#D4D4D4 highlight! CmpItemKindUnit guibg=NONE guifg=#D4D4D4