set exrc set relativenumber set nu set hidden set tabstop=2 softtabstop=2 set shiftwidth=2 set noexpandtab set smartindent set noerrorbells set nowrap set noswapfile set nobackup set undodir=~/.vim/undodir set undofile set incsearch set termguicolors set scrolloff=8 set noshowmode set colorcolumn=120 set signcolumn=yes set cmdheight=2 set updatetime=50 set shortmess+=c set encoding=UTF-8 set mouse+=a set list lcs=tab:>- set guicursor= set showtabline=2 set nohlsearch set nobomb set fileformat=unix call plug#begin('~/.vim/plugged') " NeoVim TreeSitter Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} " NERDTree Plug 'preservim/nerdtree' Plug 'Xuyuanp/nerdtree-git-plugin' Plug 'ryanoasis/vim-devicons' Plug 'tiagofumo/vim-nerdtree-syntax-highlight' Plug 'kyazdani42/nvim-web-devicons' " NeoVim Line Plug 'vim-airline/vim-airline' Plug 'vim-airline/vim-airline-themes' " GitOps Plug 'tpope/vim-fugitive' Plug 'APZelos/blamer.nvim' Plug 'jiangmiao/auto-pairs' Plug 'mbbill/undotree' Plug 'preservim/tagbar' Plug 'neoclide/coc.nvim', {'branch': 'release' } Plug 'tpope/vim-surround' Plug 'tpope/vim-commentary' Plug 'ntpeters/vim-better-whitespace' " Telescope Plug 'nvim-lua/popup.nvim' Plug 'nvim-lua/plenary.nvim' Plug 'nvim-telescope/telescope.nvim' Plug 'mattn/emmet-vim' Plug 'editorconfig/editorconfig-vim' Plug 'tpope/vim-eunuch' " ColorScheme Plug 'shaunsingh/nord.nvim' " StartScreen Plug 'mhinz/vim-startify' call plug#end() let mapleader = " " let NERDTreeShowHidden = 1 let g:better_whitespace_enabled = 1 let g:airline_powerline_fonts = 1 let g:airline#extensions#tabline#enabled = 1 let g:blamer_enabled = 1 let g:coc_sources_disable_map = { 'cs': ['cs-2', 'cs-3'] } source ~/.config/nvim/lua/treesitter.lua colorscheme nord nnoremap n :NERDTreeFocus nnoremap :NERDTree nnoremap :NERDTreeToggle nnoremap :NERDTreeFind nnoremap :BufferPin nnoremap :UndotreeToggle nnoremap ;f :Telescope find_files nnoremap ;r :Telescope live_grep nnoremap \\ :Telescope buffers nnoremap ;; :Telescope help_tags inoremap coc#refresh() nmap gd (coc-definition) nmap gy (coc-type-definition) nmap gi (coc-implementation) nmap gr (coc-references) nnoremap gh :call show_documentation() nnoremap cr :CocRestart function! s:show_documentation() if &filetype == 'vim' execute 'h '.expand('') else call CocAction('doHover') endif endfunction function TrimSpaces() range let oldhlsearch=ShowSpaces(1) execute a:firstline.",".a:lastline."substitute ///gec" let &hlsearch=oldhlsearch endfunction augroup RELMS autocmd! autocmd BufWritePre * :%s/\s\+$//e autocmd BufWinEnter * if getcmdwintype() == '' | silent NERDTreeMirror | endif autocmd BufEnter * if winnr('$') == 1 && exists('b:NERDTree') && b:NERDTree.isTabTree() | quit | endif au BufNewFile,BufRead *.ejs set filetype=html augroup END