call plug#begin()
" All the language definitions I'll ever use are here :)
Plug 'sheerun/vim-polyglot'
" One of the best plugins for GIT
Plug 'tpope/vim-fugitive'
" Ale runs syntax checkers, linters, and compilers asynchronously and displays
" " their messages on vim's interface. It's very useful to avoid wasting time
" " compiling a file that may have a lot of syntax problems the programmer
" " couldn't see.
Plug 'w0rp/ale'
" This is an intelliSense-like engine for completion that needs other engines
" installed in order to work. It should also be enough to deprecate ALE, but
" I'm still testing.
Plug 'neoclide/coc.nvim', {'do': { -> coc#util#install()}}
Plug 'shmargum/vim-sass-colors'
" theme plugins
Plug 'mhartington/oceanic-next'
Plug 'ayu-theme/ayu-vim'
" Syntax helpers for JavaScript & TypeScript
Plug 'pangloss/vim-javascript'
Plug 'leafgarland/typescript-vim'
" Typescript definitions and autocomplete
Plug 'Quramy/tsuquyomi' | Plug 'Shougo/vimproc.vim', { 'do' : 'make' }
" Syntax highlighting and indenting for TSX
Plug 'ianks/vim-tsx'
Plug 'scrooloose/nerdtree'
Plug 'xuyuanp/nerdtree-git-plugin'
Plug 'ervandew/supertab'
Plug 'ryanoasis/vim-devicons'
" Support for prisma
Plug 'pantharshit00/vim-prisma'
" I've used (U|De)nite for some time, but these days it feels better to use
" fzf.
Plug 'junegunn/fzf', { 'dir': '~/.fzf', 'do': './install --bin' }
Plug 'junegunn/fzf.vim'
" Airline and its plugins
Plug 'vim-airline/vim-airline'
Plug 'vim-airline/vim-airline-themes'
Plug 'chris-1101/vim-arclight'
" Plugin to beutify ejs files
Plug 'nikvdp/ejs-syntax'
call plug#end()
syntax enable
" Backup makes a backup of the file before writing. We're turning this off
" because CoC has a an issue caused by some servers
set nobackup
set nowritebackup
" Enables 24-bit color on the terminal if supported. The colorscheme "gruvbox"
" requires it
set termguicolors
" search will be case insensitive until one needs it to be sensitive (such as
" when using an uppercase letter)
set smartcase
" Useful for checking options and completing some commands
set wildmenu
set wrap
set number
set hidden
set autoindent
set relativenumber
set guifont=Anonymice\ Nerd\ Font\ Complete\ Mono\ 12
" set guifont=Fira\ Code\ SemiBold\ Nerd\ Font\ Complete\ Mono\ 12
set mouse=a
set tabstop=2 softtabstop=2 shiftwidth=2 noexpandtab
colorscheme ayu
nnoremap <C-s> :w! <cr>
nnoremap <C-q> :q! <cr>
" fzf bindings
nnoremap <silent><leader>f :<C-u>FZF<CR>
nnoremap <silent><leader>g :<C-u>Rg
" This is the default setting; I might change those to use my leader in the
" future.
let g:fzf_action = {
\ 'ctrl-t': 'tab split',
\ 'ctrl-x': 'split',
\ 'ctrl-v': 'vsplit' }
" Floating window, baby! And preview on rg
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
map <F1> :tabnew <CR>
map <F2> :NERDTreeToggle <CR>
let ayucolor="mirage"
let g:airline_powerline_fonts = 1
let g:coc_disable_startup_warning = 1
let g:coc_global_extensions = ['coc-css', 'coc-cssmodules', 'coc-sql', 'coc-tsserver', 'coc-vetur', 'coc-yaml', 'coc-emmet', 'coc-prettier', 'coc-tabnine']
" Floating window, baby! And preview on rg
let g:fzf_layout = { 'window': { 'width': 0.9, 'height': 0.6 } }
" show hidden fields for NERDTree
let NERDTreeShowHidden=1
" airline extentions
" let g:airline_theme = 'lightaus'
" som other good themes: cool simple
let g:airline#extensions#promptline#enabled = 1
let g:airline#extensions#fugitiveline#enabled = 1
let g:airline#extensions#tabline#enabled = 1
let g:airline#extensions#tabline#buffer_nr_show = 1
let g:airline#extensions#tabline#left_alt_sep = ''
let g:airline#extensions#tabline#formatter = 'unique_tail_improved'
if isdirectory(expand("~/.vim/bundle/vim-airline-themes/"))
if !exists('g:airline_theme')
let g:airline_theme = 'lightaus'
endif
endif
Last active
December 14, 2021 02:12
-
-
Save dede999/2ac95c1d0b0c136e2ced35fb83a93707 to your computer and use it in GitHub Desktop.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment