-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathinit.vim
80 lines (63 loc) · 1.81 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
set encoding=utf-8
set t_Co=256
set termguicolors
set ff=unix
set synmaxcol=256
set backspace=2
set wildmenu
set pumheight=12
set autoread
set clipboard+=unnamed
let mapleader = ","
let g:python3_host_prog = '/opt/homebrew/bin/python3'
let g:go_fmt_command = "goimports"
"dein Scripts-----------------------------
if &compatible
set nocompatible " Be iMproved
endif
" Set: runtime path
set rtp+=/Users/aaron/.config/nvim/lua
set rtp+=/opt/homebrew/opt/fzf
" Required: for dein.vim plugin management
set rtp+=~/.config/nvim/./dein/repos/github.com/Shougo/dein.vim
" Dein.vim Setup Required:
let s:toml = '~/.config/nvim/./dein/config/plugins.toml'
let s:lazy_toml = '~/.config/nvim/./dein/config/plugins.lazy.toml'
let s:theme_toml = '~/.config/nvim/./dein/config/themes.toml'
let g:dein#auto_recache = v:false
if dein#load_state('~/.config/nvim/./dein')
call dein#begin('~/.config/nvim/./dein')
" Let dein manage dein
" Required:
call dein#add('~/.config/nvim/./dein/repos/github.com/Shougo/dein.vim')
call dein#load_toml(s:toml, {'lazy': 0})
call dein#load_toml(s:lazy_toml, {'lazy': 1})
call dein#load_toml(s:theme_toml, {'lazy': 0})
" Required:
call dein#end()
call dein#save_state()
endif
" Load: lua settings
lua require'settings';
lua require'dashboard-config';
" Set: colorscheme
colorscheme nightfly
autocmd VimEnter * call dein#call_hook('post_source')
" Required:
filetype plugin indent on
syntax enable
" If you want to install not installed plugins on startup.
if dein#check_install()
call dein#install()
endif
"End dein Scripts-------------------------
function! RestoreRegister()
let @" = s:restore_reg
return ''
endfunction
function! s:Repl()
let s:restore_reg = @"
return "p@=RestoreRegister()\<cr>"
endfunction
vmap <silent> <expr> p <sid>Repl()
autocmd CompleteDone * pclose