-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.vim
62 lines (54 loc) · 1.44 KB
/
init.vim
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
call plug#begin('~/.config/nvim/plugged')
Plug 'tpope/vim-sensible'
Plug 'hashivim/vim-terraform'
Plug 'mhinz/vim-signify'
"Plug 'airblade/vim-gitgutter'
Plug 'tpope/vim-fugitive'
Plug 'vim-ruby/vim-ruby'
Plug 'joshdick/onedark.vim'
Plug 'vim-airline/vim-airline'
Plug 'tpope/vim-ragtag'
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
Plug 'junegunn/fzf.vim'
"Plug 'folke/tokyonight.nvim'
Plug 'neovim/nvim-lspconfig'
" On-demand loading
Plug 'scrooloose/nerdtree', { 'on': 'NERDTreeToggle' }
call plug#end()
" Leader/Keybindings
let mapleader = ','
" Copy to system clipboard
nnoremap <Leader>y "+yy
" Paste externally selected text
nnoremap <Leader>p "*p
nnoremap <Leader>g :GFiles<CR>
" Ariline pathing
let g:airline_section_c = '%<%F%m %#__accent_red#%{airline#util#wrap(airline#parts#readonly(),0)}%#__restore__#'
set number
set relativenumber
set mouse=a
set clipboard=unnamed
syntax on
colorscheme onedark
"colorscheme tokyonight-storm
" NERDTree settings
nnoremap <F4> :NERDTreeToggle<CR>
let NERDTreeShowLineNumbers=1
let NERDTreeShowHidden=1
autocmd FileType nerdtree setlocal relativenumber
autocmd VimResized * wincmd =
nnoremap <Leader>h <C-W>h
nnoremap <Leader>l <C-W>l
" Terraform Auto-Format
let g:terraform_fmt_on_save=1
autocmd BufWritePre *.tf :TerraformFmt
" LSP Config
lua << EOF
require'lspconfig'.solargraph.setup {}
EOF
" Auto-complete pairs
inoremap " ""<Left>
inoremap ' ''<Left>
inoremap ( ()<Left>
inoremap { {}<Left>
inoremap [ []<Left>