2022-11-05 16:53:26 +00:00
|
|
|
" 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
|
2024-02-29 05:29:31 +00:00
|
|
|
Plug 'bluz71/vim-nightfly-colors', { 'as': 'nightfly', 'branch': 'legacy' }
|
2022-11-05 16:53:26 +00:00
|
|
|
|
|
|
|
" 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>
|
|
|
|
|
2024-02-29 05:29:31 +00:00
|
|
|
colorscheme nightfly
|
2022-11-05 16:53:26 +00:00
|
|
|
|
|
|
|
|