|
| 1 | +call plug#begin('~/.vim/plugged') |
| 2 | + |
| 3 | +Plug 'neoclide/coc.nvim', {'branch': 'release'} |
| 4 | +Plug 'scrooloose/nerdtree' |
| 5 | +Plug 'Xuyuanp/nerdtree-git-plugin' |
| 6 | +Plug 'tiagofumo/vim-nerdtree-syntax-highlight' |
| 7 | +Plug 'ryanoasis/vim-devicons' |
| 8 | +Plug 'scrooloose/nerdcommenter' |
| 9 | + |
| 10 | + |
| 11 | +Plug 'nvim-telescope/telescope.nvim' |
| 12 | +Plug 'nvim-lua/popup.nvim' |
| 13 | +Plug 'nvim-lua/plenary.nvim' |
| 14 | +Plug 'nvim-telescope/telescope-fzy-native.nvim' |
| 15 | + |
| 16 | +Plug 'vim-airline/vim-airline' |
| 17 | +Plug 'vim-airline/vim-airline-themes' |
| 18 | + |
| 19 | +" syntax highlighting |
| 20 | +Plug 'posva/vim-vue' |
| 21 | +Plug 'kevinoid/vim-jsonc' |
| 22 | +" Plug 'prettier/vim-prettier' |
| 23 | + |
| 24 | + |
| 25 | +" Colorschemes |
| 26 | +Plug 'gruvbox-community/gruvbox' |
| 27 | +Plug 'haishanh/night-owl.vim' |
| 28 | +Plug 'drewtempelmeyer/palenight.vim' |
| 29 | +Plug 'sainnhe/gruvbox-material' |
| 30 | +Plug 'phanviet/vim-monokai-pro' |
| 31 | +Plug 'flazz/vim-colorschemes' |
| 32 | +Plug 'NLKNguyen/papercolor-theme' |
| 33 | +Plug 'chriskempson/base16-vim' |
| 34 | +Plug 'dracula/vim', { 'as': 'dracula' } |
| 35 | +Plug 'joshdick/onedark.vim' |
| 36 | +Plug 'ayu-theme/ayu-vim' |
| 37 | +Plug 'arcticicestudio/nord-vim' |
| 38 | +Plug 'rakr/vim-one' |
| 39 | + |
| 40 | +call plug#end() |
| 41 | + |
| 42 | +" coc config |
| 43 | +let g:coc_global_extensions = [ |
| 44 | + \ 'coc-snippets', |
| 45 | + \ 'coc-pairs', |
| 46 | + \ 'coc-tsserver', |
| 47 | + \ 'coc-eslint', |
| 48 | + \ 'coc-prettier', |
| 49 | + \ 'coc-json', |
| 50 | + \ ] |
| 51 | +" :CocCommand snippets.editSnippets |
| 52 | + |
| 53 | +" prettier |
| 54 | +" command! Prettier CocCommand prettier.formatFile |
| 55 | + |
| 56 | +set termguicolors |
| 57 | +" let ayucolor="light" |
| 58 | +" let ayucolor="mirage" |
| 59 | +let ayucolor="dark" |
| 60 | +colorscheme ayu |
| 61 | + |
| 62 | + |
| 63 | +syntax on |
| 64 | + |
| 65 | +" editor settings |
| 66 | +set scrolloff=8 |
| 67 | +set smartcase |
| 68 | +set nowrap |
| 69 | +set number |
| 70 | +set relativenumber |
| 71 | +set colorcolumn=80 |
| 72 | + |
| 73 | +" cursor |
| 74 | +set guicursor=n:block |
| 75 | +set guicursor+=o-r:hor50 |
| 76 | +set guicursor+=v:hor10 |
| 77 | +set guicursor+=i:ver10 |
| 78 | +set guicursor+=a:blinkon50-blinkoff50 |
| 79 | + |
| 80 | +set ignorecase |
| 81 | +set nohlsearch |
| 82 | +set incsearch |
| 83 | + |
| 84 | +set hidden |
| 85 | +set noerrorbells |
| 86 | + |
| 87 | +" text formatting |
| 88 | +set tabstop=4 softtabstop=4 |
| 89 | +set shiftwidth=4 |
| 90 | +set expandtab |
| 91 | +set smartindent |
| 92 | + |
| 93 | +set isfname+=@-@ |
| 94 | + |
| 95 | +set noswapfile |
| 96 | +set nobackup |
| 97 | + |
| 98 | +set cmdheight=3 |
| 99 | +set updatetime=50 |
| 100 | + |
| 101 | +set shortmess+=c |
| 102 | + |
| 103 | +set undodir=~/.vim/undodir |
| 104 | +set undofile |
| 105 | +set signcolumn=yes |
| 106 | + |
| 107 | + |
| 108 | +let $BASH_ENV = "~/.aliases" |
| 109 | + |
| 110 | +" let g:airline_theme='one' |
| 111 | + |
| 112 | +""""" REMAPS |
| 113 | +let mapleader = " " |
| 114 | + |
| 115 | +" window management |
| 116 | +nnoremap <leader>xv :Vex<CR> |
| 117 | +nnoremap <leader>xs :Sex<CR> |
| 118 | +
|
| 119 | +" source vimrc |
| 120 | +nnoremap <leader><CR> :so ~/.config/nvim/init.vim<CR> |
| 121 | +nnoremap <leader>vrc :e $MYVIMRC<CR> |
| 122 | + |
| 123 | +" Navigation |
| 124 | +nnoremap <leader>mm :marks<CR>:q |
| 125 | + |
| 126 | +" KILL THOSE ARROWS |
| 127 | +noremap <Up> <nop> |
| 128 | +noremap <Down> <nop> |
| 129 | +noremap <Left> <nop> |
| 130 | +noremap <Right> <nop> |
| 131 | +inoremap <Up> <nop> |
| 132 | +inoremap <Down> <nop> |
| 133 | +inoremap <Left> <nop> |
| 134 | +inoremap <Right> <nop> |
| 135 | + |
| 136 | +" Quick fix list |
| 137 | +nnoremap <leader>ql :copen<CR> |
| 138 | +nnoremap <C-j> :cnext<CR> |
| 139 | +nnoremap <C-k> :cprev<CR> |
| 140 | +
|
| 141 | +" Telescope |
| 142 | +nnoremap <leader>ps :lua require('telescope.builtin').grep_string({ search = vim.fn.input("Grep For > ")})<CR> |
| 143 | +
|
| 144 | +" Command Line |
| 145 | +nnoremap <leader>. :! |
| 146 | +
|
| 147 | +" CoC Settings |
| 148 | +" inoremap <silent><expr> <c-space> coc#refresh() |
| 149 | +" |
| 150 | +" |
| 151 | +" |
| 152 | +" |
| 153 | +" |
| 154 | +" lsp config |
| 155 | +" local on_attach = require'completion'.on_attach |
| 156 | +" lua require('lspconfig').tsserver.setup{} |
| 157 | + |
| 158 | + |
| 159 | + |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | + |
0 commit comments