From 04dce07b8605f8cb25183352f4e720f74fa2c0be Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sat, 24 Jun 2023 00:36:11 +0200 Subject: feat(): update everyting and add nvim config --- config/nvim/init.vim | 96 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 96 insertions(+) create mode 100644 config/nvim/init.vim (limited to 'config/nvim') diff --git a/config/nvim/init.vim b/config/nvim/init.vim new file mode 100644 index 0000000..00ce052 --- /dev/null +++ b/config/nvim/init.vim @@ -0,0 +1,96 @@ +set nocompatible " be iMproved, required +filetype off " required + +syntax on + +" set the runtime path to include Vundle and initialize +set rtp+=~/.vim/bundle/Vundle.vim +call vundle#begin() + +" let Vundle manage Vundle, required +Plugin 'VundleVim/Vundle.vim' + +" Plugins +Plugin 'godlygeek/tabular' +" Plugin 'preservim/vim-markdown' +Plugin 'vim-pandoc/vim-pandoc' +Plugin 'vim-pandoc/vim-pandoc-syntax' +Plugin 'WolfgangMehner/latex-support' +Plugin 'http://github.com/tpope/vim-surround' " Surrounding ysw) +Plugin 'https://github.com/preservim/nerdtree' " NerdTree +Plugin 'https://github.com/tpope/vim-commentary' " For Commenting gcc & gc +Plugin 'https://github.com/vim-airline/vim-airline' " Status bar +Plugin 'https://github.com/ap/vim-css-color' " CSS Color Preview +Plugin 'https://github.com/rafi/awesome-vim-colorschemes' " Retro Scheme +Plugin 'https://github.com/ryanoasis/vim-devicons' " Developer Icons +Plugin 'https://github.com/tc50cal/vim-terminal' " Vim Terminal +Plugin 'https://github.com/preservim/tagbar' " Tagbar for code navigation +Plugin 'https://github.com/neoclide/coc.nvim' " Autocompletions +" Plugin 'https://github.com/terryma/vim-multiple-cursors' " CTRL + N for multiple cursors +Plugin 'https://github.com/mattn/emmet-vim' " Emmet support + +call vundle#end() " required +filetype plugin indent on " required + +:colorscheme onedark + +:set number relativenumber +:set autoindent +:set tabstop=4 +:set shiftwidth=4 +:set smarttab +:set softtabstop=4 +:set mouse=a + +nnoremap :tabprevious +nnoremap :tabnext +nnoremap :tabprevious +nnoremap :tabnext +nnoremap :tabclose + +nnoremap :NERDTreeFocus +nnoremap :NERDTree +nnoremap :NERDTreeToggle + +nmap :TagbarToggle + +:set completeopt-=preview " For No Previews + +let g:NERDTreeDirArrowExpandable="+" +let g:NERDTreeDirArrowCollapsible="~" + +let g:airline_powerline_fonts = 1 + +if !exists('g:airline_symbols') + let g:airline_symbols = {} +endif + +" airline symbols +let g:airline_left_sep = '' +let g:airline_left_alt_sep = '' +let g:airline_right_sep = '' +let g:airline_right_alt_sep = '' +let g:airline_symbols.branch = '' +let g:airline_symbols.readonly = '' +let g:airline_symbols.linenr = '' + +" Custom Commands +"" LateX +:command Ttp !pdflatex %:t + +"" JS/TS/Node +:command NpmInstall !npm install +:command TscWatch !npm run ts-watch +:command NodemonStart !npm run start + +"" Git +:command -nargs=1 -bar GitignoreCreate !curl https://www.toptal.com/developers/gitignore/api/ | tee -a .gitignore +:command -nargs=* GitCommit !git commit -m "" +:command -nargs=* GitCommitAll !git commit -am "" +:command GitAddAll !git add * && git add .* +:command GitStatus !git status +:command GitPush !git push + +inoremap pumvisible() ? coc#_select_confirm() : "" + +set shell=/bin/bash -- cgit v1.2.3