60 lines
1 KiB
VimL
60 lines
1 KiB
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 'bluz71/vim-nightfly-colors', { 'as': 'nightfly', 'branch': 'legacy' }
|
|
|
|
" 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 nightfly
|
|
|
|
|