diff options
author | Shubham Saini <shubham6405@gmail.com> | 2019-12-02 12:21:04 +0000 |
---|---|---|
committer | Shubham Saini <shubham6405@gmail.com> | 2019-12-02 12:21:04 +0000 |
commit | a42df546ce34429759a20bc2c4c240de045dbd0a (patch) | |
tree | 4e7153d41d6a1b710f8002f2eb7b64231889b6cf /nvim |
using stow
Diffstat (limited to 'nvim')
-rw-r--r-- | nvim/.config/nvim/init.vim | 137 |
1 files changed, 137 insertions, 0 deletions
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim new file mode 100644 index 0000000..1b1996d --- /dev/null +++ b/nvim/.config/nvim/init.vim | |||
@@ -0,0 +1,137 @@ | |||
1 | runtime! archlinux.vim | ||
2 | set number relativenumber | ||
3 | |||
4 | call plug#begin() | ||
5 | "Plug 'Shougo/deoplete.nvim', { 'do': ':UpdateRemotePlugins' } | ||
6 | Plug 'iamcco/markdown-preview.nvim', { 'do': { -> mkdp#util#install() } } | ||
7 | Plug 'Shougo/deol.nvim' | ||
8 | Plug 'ap/vim-css-color' | ||
9 | Plug 'luochen1990/rainbow' | ||
10 | Plug 'zchee/deoplete-jedi' | ||
11 | Plug 'tpope/vim-eunuch' | ||
12 | Plug 'scrooloose/nerdtree' | ||
13 | Plug 'junegunn/goyo.vim' | ||
14 | Plug 'airblade/vim-gitgutter' | ||
15 | Plug 'godlygeek/tabular' | ||
16 | Plug 'plasticboy/vim-markdown' | ||
17 | Plug 'vim-airline/vim-airline' | ||
18 | Plug 'panozzaj/vim-autocorrect' | ||
19 | Plug 'vim-airline/vim-airline-themes' | ||
20 | call plug#end() | ||
21 | |||
22 | " deoplete | ||
23 | let g:deoplete#enable_at_startup = 1 | ||
24 | |||
25 | " git gutter settings | ||
26 | let g:gitgutter_override_sign_column_highlight = 0 | ||
27 | let g:gitgutter_sign_added = '+' | ||
28 | let g:gitgutter_sign_modified = '±' | ||
29 | let g:gitgutter_sign_removed = '-' | ||
30 | let g:gitgutter_sign_removed_first_line = '^' | ||
31 | let g:gitgutter_sign_modified_removed = '#' | ||
32 | |||
33 | " markdown preview | ||
34 | let g:mkdp_auto_start = 0 | ||
35 | let g:mkdp_auto_close = 1 | ||
36 | let g:mkdp_refresh_slow = 0 | ||
37 | let g:mkdp_command_for_global = 0 | ||
38 | let g:mkdp_open_to_the_world = 0 | ||
39 | let g:mkdp_open_ip = '' | ||
40 | let g:mkdp_browser = 'firefox' | ||
41 | let g:mkdp_echo_preview_url = 0 | ||
42 | let g:mkdp_browserfunc = '' | ||
43 | let g:mkdp_preview_options = { | ||
44 | \ 'mkit': {}, | ||
45 | \ 'katex': {}, | ||
46 | \ 'uml': {}, | ||
47 | \ 'maid': {}, | ||
48 | \ 'disable_sync_scroll': 0, | ||
49 | \ 'sync_scroll_type': 'middle', | ||
50 | \ 'hide_yaml_meta': 1, | ||
51 | \ 'sequence_diagrams': {} | ||
52 | \ } | ||
53 | let g:mkdp_markdown_css = '' | ||
54 | let g:mkdp_highlight_css = '' | ||
55 | let g:mkdp_port = '' | ||
56 | let g:mkdp_page_title = '「${name}」' | ||
57 | |||
58 | " rainbow | ||
59 | let g:rainbow_active = 1 | ||
60 | |||
61 | " vim-markdown | ||
62 | let g:vim_markdown_no_default_key_mappings=1 | ||
63 | let g:vim_markdown_toml_frontmatter=1 | ||
64 | let g:vim_markdown_yaml_fromtmatter=1 | ||
65 | let g:vim_markdown_folding_disabled=1 | ||
66 | |||
67 | |||
68 | " keysound | ||
69 | let g:keysound_enable = 1 | ||
70 | let g:keysound_volume = 1000 | ||
71 | let g:keysound_py_version = 3 | ||
72 | let g:keysound_theme = 'default' | ||
73 | |||
74 | " symbols | ||
75 | let g:Powerline_symbols = "fancy" | ||
76 | let g:Powerline_dividers_override = ["\Ue0b0","\Ue0b1","\Ue0b2","\Ue0b3"] | ||
77 | let g:Powerline_symbols_override = {'BRANCH': "\Ue0a0", 'LINE': "\Ue0a1", 'RO': "\Ue0a2"} | ||
78 | let g:airline_powerline_fonts = 1 | ||
79 | let g:airline_right_alt_sep = '' | ||
80 | let g:airline_right_sep = '' | ||
81 | let g:airline_left_alt_sep= '' | ||
82 | let g:airline_left_sep = '' | ||
83 | |||
84 | " air-line | ||
85 | let g:airline_powerline_fonts = 1 | ||
86 | |||
87 | if !exists('g:airline_symbols') | ||
88 | let g:airline_symbols = {} | ||
89 | endif | ||
90 | |||
91 | " unicode symbols | ||
92 | let g:airline_left_sep = '»' | ||
93 | let g:airline_left_sep = '▶' | ||
94 | let g:airline_right_sep = '«' | ||
95 | let g:airline_right_sep = '◀' | ||
96 | let g:airline_symbols.linenr = '␊' | ||
97 | let g:airline_symbols.linenr = '' | ||
98 | let g:airline_symbols.linenr = '¶' | ||
99 | let g:airline_symbols.branch = '⎇' | ||
100 | let g:airline_symbols.paste = 'ρ' | ||
101 | let g:airline_symbols.paste = 'Þ' | ||
102 | let g:airline_symbols.paste = '∥' | ||
103 | let g:airline_symbols.whitespace = 'Ξ' | ||
104 | |||
105 | " airline symbols | ||
106 | let g:airline_left_sep = '' | ||
107 | let g:airline_left_alt_sep = '' | ||
108 | let g:airline_right_sep = '' | ||
109 | let g:airline_right_alt_sep = '' | ||
110 | let g:airline_symbols.branch = '' | ||
111 | let g:airline_symbols.readonly = '' | ||
112 | let g:airline_symbols.linenr = '' | ||
113 | |||
114 | "Airline Themes | ||
115 | "let g:airline_theme='dark' | ||
116 | "let g:airline_theme='badwolf' | ||
117 | "let g:airline_theme='ravenpower' | ||
118 | "let g:airline_theme='simple' | ||
119 | "let g:airline_theme='term' | ||
120 | "let g:airline_theme='ubaryd' | ||
121 | "let g:airline_theme='laederon' | ||
122 | "let g:airline_theme='kolor' | ||
123 | let g:airline_theme='molokai' | ||
124 | "let g:airline_theme='powerlineish' | ||
125 | " | ||
126 | set guicursor= | ||
127 | set mouse=a | ||
128 | syntax on | ||
129 | "set cursorline | ||
130 | set smartcase | ||
131 | set wildmenu " Tab autocomplete in command mode | ||
132 | set autoread " Auto reload changed files | ||
133 | |||
134 | |||
135 | " mapping | ||
136 | map <C-n> :NERDTreeToggle<CR> | ||
137 | nmap <C-l> <Plug>MarkdownPreviewToggle | ||