env/extras.vim

61 lines
1,008 B
VimL

" Shared configuration for NVIM.
""""""""""
" Misc "
""""""""""
set number
syntax on
set tabstop=4
set shiftwidth=4
set expandtab
set ignorecase
set cursorline
set cursorcolumn
set textwidth=120
set wrap linebreak
set termguicolors
"""""""""""
" Plugins "
"""""""""""
call plug#begin('~/.vim/plugged')
" Style
Plug 'joshdick/onedark.vim'
" Language support
Plug 'maxmellon/vim-jsx-pretty'
Plug 'leafgarland/typescript-vim'
" Git things
Plug 'airblade/vim-gitgutter'
Plug 'nvim-lua/plenary.nvim'
Plug 'vim-airline/vim-airline'
Plug 'HerringtonDarkholme/yats.vim'
Plug 'tpope/vim-fugitive'
" Search
Plug 'nvim-telescope/telescope.nvim'
Plug 'nvim-telescope/telescope-symbols.nvim'
" Patched for support Yarn Berry.
Plug 'mcataford/ale'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
call plug#end()
""""""""""""""""
" Key bindings "
""""""""""""""""
let mapleader=" "
nmap <leader>f <cmd>Telescope live_grep<CR>
nmap <leader>F <cmd>Telescope grep_string<CR>
colorscheme onedark