summaryrefslogtreecommitdiff
path: root/nvim
diff options
context:
space:
mode:
Diffstat (limited to 'nvim')
-rwxr-xr-xnvim/.config/nvim/coc-settings.json13
-rwxr-xr-x[-rw-r--r--]nvim/.config/nvim/colors/jellybeans.vim0
-rwxr-xr-xnvim/.config/nvim/colors/pencil.vim388
-rwxr-xr-x[-rw-r--r--]nvim/.config/nvim/init.vim0
4 files changed, 401 insertions, 0 deletions
diff --git a/nvim/.config/nvim/coc-settings.json b/nvim/.config/nvim/coc-settings.json
new file mode 100755
index 0000000..1b0825b
--- /dev/null
+++ b/nvim/.config/nvim/coc-settings.json
@@ -0,0 +1,13 @@
1{
2 "pairs.enableCharacters": ["(", "[", "{", "'", "\"", "`"],
3 "suggest.noselect": false,
4 "coc.preferences.formatOnSaveFiletypes": [
5 "javascript",
6 "typescript",
7 "typescriptreact",
8 "json",
9 "javascriptreact",
10 "typescript.tsx",
11 "graphql"
12 ]
13}
diff --git a/nvim/.config/nvim/colors/jellybeans.vim b/nvim/.config/nvim/colors/jellybeans.vim
index 73a0d98..73a0d98 100644..100755
--- a/nvim/.config/nvim/colors/jellybeans.vim
+++ b/nvim/.config/nvim/colors/jellybeans.vim
diff --git a/nvim/.config/nvim/colors/pencil.vim b/nvim/.config/nvim/colors/pencil.vim
new file mode 100755
index 0000000..95dae88
--- /dev/null
+++ b/nvim/.config/nvim/colors/pencil.vim
@@ -0,0 +1,388 @@
1" Vim Color File
2" Name: pencil.vim
3" Version: 0.6
4" Maintainer: github.com/reedes github.com/mattly
5" License: The MIT License (MIT)
6
7" Original iA Writer colors, to use as a guide
8" White #F1F1F1
9" OffWhiteIPad #F5F2EC
10" OffWhiteDemo #F9F8F4
11" Cursor #20BBFC
12" Selection #B6D6FD
13" SelectionNOS #D4D4D4
14" StatusBar #EDEDED
15" StatusBarBorder #D9D9D9 used for search too
16" Text #424242
17" Blue #B5D6FD
18" Green #30C798
19" Blue2 #1DAEE4
20" gray #999999
21" Red #E32791
22" UnfocusedText #B8B8B8
23" MenuSelected #2C81FB
24" MenuUnSelected #545454
25" MenuText #F1F1F1
26" LightKeyBg #4B4B4B
27" DarkKeyBg #262626
28" NearBlack #181818
29" SyntaxButton #363738
30" SearchHighlight #F3E430 yellow
31
32hi clear
33
34if exists('syntax on')
35 syntax reset
36endif
37
38let g:colors_name='pencil'
39
40if ! exists("g:pencil_higher_contrast_ui")
41 let g:pencil_higher_contrast_ui = 0
42endif
43
44if ! exists("g:pencil_neutral_code_bg")
45 let g:pencil_neutral_code_bg = 0
46endif
47
48if ! exists("g:pencil_neutral_headings")
49 let g:pencil_neutral_headings = 0
50endif
51
52" not all terminals support italics properly. If yours does, opt-in.
53if ! exists("g:pencil_terminal_italics")
54 let g:pencil_terminal_italics = 0
55endif
56
57if ! exists("g:pencil_spell_undercurl")
58 let g:pencil_spell_undercurl = 1
59endif
60
61if ! exists("g:pencil_gutter_color")
62 let g:pencil_gutter_color = 0
63endif
64
65" Colors
66let s:black = { "gui": "#212121", "cterm": "0" }
67let s:medium_gray = { "gui": "#767676", "cterm": "243" }
68let s:white = { "gui": "#F1F1F1", "cterm": "15" }
69let s:actual_white = { "gui": "#FFFFFF", "cterm": "231" }
70let s:light_black = { "gui": "#424242", "cterm": "235" }
71let s:lighter_black = { "gui": "#545454", "cterm": "240" }
72
73if g:pencil_higher_contrast_ui == 0
74 " darker shadow and whiter grays
75 let s:subtle_black = { "gui": "#262626", "cterm": "235" }
76 let s:light_gray = { "gui": "#D9D9D9", "cterm": "253" }
77 let s:lighter_gray = { "gui": "#E5E6E6", "cterm": "254" }
78else
79 " lighter shadows and darker grays
80 let s:subtle_black = { "gui": "#303030", "cterm": "236" }
81 let s:light_gray = { "gui": "#B2B2B2", "cterm": "249" }
82 let s:lighter_gray = { "gui": "#C6C6C6", "cterm": "251" }
83endif
84
85let s:pink = { "gui": "#fb007a", "cterm": "9" }
86let s:dark_red = { "gui": "#C30771", "cterm": "1" }
87let s:light_red = { "gui": "#E32791", "cterm": "1" }
88let s:orange = { "gui": "#D75F5F", "cterm": "167" }
89
90let s:darker_blue = { "gui": "#005F87", "cterm": "18" }
91let s:dark_blue = { "gui": "#008EC4", "cterm": "4" }
92let s:blue = { "gui": "#20BBFC", "cterm": "12" }
93let s:light_blue = { "gui": "#b6d6fd", "cterm": "153" }
94let s:dark_cyan = { "gui": "#20A5BA", "cterm": "6" }
95let s:light_cyan = { "gui": "#4FB8CC", "cterm": "14" }
96
97let s:dark_green = { "gui": "#10A778", "cterm": "2" }
98let s:light_green = { "gui": "#5FD7A7", "cterm": "10" }
99
100let s:dark_purple = { "gui": "#523C79", "cterm": "5" }
101let s:light_purple = { "gui": "#6855DE", "cterm": "13" }
102
103let s:yellow = { "gui": "#F3E430", "cterm": "11" }
104let s:dark_yellow = { "gui": "#A89C14", "cterm": "3" }
105
106if &background == "dark"
107 let s:bg = s:black
108 let s:bg_subtle = s:light_black
109 let s:bg_very_subtle = s:subtle_black
110 let s:norm = s:lighter_gray
111 let s:norm_subtle = s:light_gray
112 let s:purple = s:light_purple
113 let s:cyan = s:light_cyan
114 let s:green = s:light_green
115 let s:red = s:light_red
116 let s:visual = s:lighter_black
117else
118 let s:bg = s:white
119 let s:bg_subtle = s:light_gray
120 let s:bg_very_subtle = s:lighter_gray
121 let s:norm = s:light_black
122 let s:norm_subtle = s:lighter_black
123 let s:purple = s:dark_purple
124 let s:cyan = s:dark_cyan
125 let s:green = s:dark_green
126 let s:red = s:dark_red
127 let s:visual = s:light_blue
128endif
129
130if g:pencil_neutral_headings == 1
131 let s:head_a = s:norm
132 let s:head_b = s:norm
133 let s:head_c = s:norm
134else
135 let s:head_a = s:dark_blue
136 let s:head_b = s:blue
137 let s:head_c = s:dark_cyan
138endif
139
140if g:pencil_neutral_code_bg == 1
141 let s:code_bg = s:bg
142else
143 let s:code_bg = s:bg_very_subtle
144endif
145
146if g:pencil_spell_undercurl == 1
147 let s:sp_un = 'undercurl'
148else
149 let s:sp_un = 'underline'
150endif
151
152" shamelessly stolen from hemisu: https://github.com/noahfrederick/vim-hemisu/
153function! s:h(group, style)
154 " Not all terminals support italics properly. If yours does, opt-in.
155 if g:pencil_terminal_italics == 0 && has_key(a:style, "cterm") && a:style["cterm"] == "italic"
156 unlet a:style.cterm
157 endif
158 execute "highlight" a:group
159 \ "guifg=" (has_key(a:style, "fg") ? a:style.fg.gui : "NONE")
160 \ "guibg=" (has_key(a:style, "bg") ? a:style.bg.gui : "NONE")
161 \ "guisp=" (has_key(a:style, "sp") ? a:style.sp.gui : "NONE")
162 \ "gui=" (has_key(a:style, "gui") ? a:style.gui : "NONE")
163 \ "ctermfg=" (has_key(a:style, "fg") ? a:style.fg.cterm : "NONE")
164 \ "ctermbg=" (has_key(a:style, "bg") ? a:style.bg.cterm : "NONE")
165 \ "cterm=" (has_key(a:style, "cterm") ? a:style.cterm : "NONE")
166endfunction
167
168" common groups ================================================================
169" (see `:h w18`)
170
171call s:h("Normal", {"bg": s:bg, "fg": s:norm})
172call s:h("Cursor", {"bg": s:blue, "fg": s:norm })
173call s:h("Comment", {"fg": s:medium_gray, "gui": "italic", "cterm": "italic"})
174
175call s:h("Constant", {"fg": s:cyan})
176hi! link String Constant
177hi! link Character Constant
178hi! link Number Constant
179hi! link Boolean Constant
180hi! link Float Constant
181
182call s:h("Identifier", {"fg": s:dark_blue})
183hi! link Function Identifier
184
185call s:h("Statement", {"fg": s:green})
186hi! link Conditonal Statement
187hi! link Repeat Statement
188hi! link Label Statement
189hi! link Operator Statement
190hi! link Keyword Statement
191hi! link Exception Statement
192
193call s:h("PreProc", {"fg": s:red})
194hi! link Include PreProc
195hi! link Define PreProc
196hi! link Macro PreProc
197hi! link PreCondit PreProc
198
199call s:h("Type", {"fg": s:purple})
200hi! link StorageClass Type
201hi! link Structure Type
202hi! link Typedef Type
203
204call s:h("Special", {"fg": s:pink})
205hi! link SpecialChar Special
206hi! link Tag Special
207hi! link Delimiter Special
208hi! link SpecialComment Special
209hi! link Debug Special
210
211call s:h("Underlined", {"fg": s:norm , "gui": "underline", "cterm": "underline"})
212call s:h("Ignore", {"fg": s:bg })
213call s:h("Error", {"fg": s:actual_white, "bg": s:red , "gui": "bold" , "cterm": "bold" })
214call s:h("Todo", {"fg": s:actual_white, "bg": s:pink, "gui": "bold" , "cterm": "bold" })
215
216" ui chrome ====================================================================
217" ordered according to `:help hitest.vim`
218
219call s:h("SpecialKey", {"fg": s:light_green})
220call s:h("NonText", {"fg": s:bg_subtle})
221call s:h("Directory", {"fg": s:dark_blue})
222call s:h("ErrorMsg", {"fg": s:pink})
223call s:h("IncSearch", {"bg": s:yellow, "fg": s:light_black})
224call s:h("Search", {"bg": s:bg_subtle})
225call s:h("MoreMsg", {"fg": s:medium_gray, "gui": "bold", "cterm": "bold"})
226hi! link ModeMsg MoreMsg
227call s:h("LineNr", {"fg": s:bg_subtle})
228call s:h("CursorLineNr", {"fg": s:blue, "bg": s:bg_very_subtle})
229call s:h("Question", {"fg": s:red})
230call s:h("StatusLine", {"bg": s:bg_very_subtle})
231call s:h("Conceal", {"fg": s:norm})
232call s:h("StatusLineNC", {"bg": s:bg_very_subtle, "fg": s:medium_gray})
233call s:h("VertSplit", {"bg": s:bg_very_subtle, "fg": s:bg_very_subtle})
234call s:h("Title", {"fg": s:dark_blue})
235call s:h("Visual", {"bg": s:visual})
236call s:h("VisualNOS", {"bg": s:bg_subtle})
237call s:h("WarningMsg", {"fg": s:red})
238call s:h("WildMenu", {"fg": s:bg, "bg": s:norm})
239call s:h("Folded", {"fg": s:medium_gray})
240call s:h("FoldColumn", {"fg": s:bg_subtle})
241call s:h("DiffAdd", {"bg": s:bg_subtle, "fg": s:green})
242call s:h("DiffDelete", {"bg": s:bg_subtle, "fg": s:red})
243call s:h("DiffChange", {"bg": s:bg_subtle, "fg": s:dark_yellow})
244call s:h("DiffText", {"bg": s:bg_subtle, "fg": s:dark_blue})
245call s:h("SignColumn", {"fg": s:light_green})
246
247if has("gui_running")
248 call s:h("SpellBad", {"gui": s:sp_un, "sp": s:red})
249 call s:h("SpellCap", {"gui": s:sp_un, "sp": s:light_green})
250 call s:h("SpellRare", {"gui": s:sp_un, "sp": s:pink})
251 call s:h("SpellLocal", {"gui": s:sp_un, "sp": s:dark_green})
252else
253 call s:h("SpellBad", {"cterm": s:sp_un, "fg": s:red})
254 call s:h("SpellCap", {"cterm": s:sp_un, "fg": s:light_green})
255 call s:h("SpellRare", {"cterm": s:sp_un, "fg": s:pink})
256 call s:h("SpellLocal", {"cterm": s:sp_un, "fg": s:dark_green})
257endif
258call s:h("Pmenu", {"fg": s:norm, "bg": s:bg_subtle})
259call s:h("PmenuSel", {"fg": s:norm, "bg": s:blue})
260call s:h("PmenuSbar", {"fg": s:norm, "bg": s:bg_subtle})
261call s:h("PmenuThumb", {"fg": s:norm, "bg": s:bg_subtle})
262call s:h("TabLine", {"fg": s:norm, "bg": s:bg_very_subtle})
263call s:h("TabLineSel", {"fg": s:blue, "bg": s:bg_subtle, "gui": "bold", "cterm": "bold"})
264call s:h("TabLineFill", {"fg": s:norm, "bg": s:bg_very_subtle})
265call s:h("CursorColumn", {"bg": s:bg_very_subtle})
266call s:h("CursorLine", {"bg": s:bg_very_subtle})
267call s:h("ColorColumn", {"bg": s:bg_subtle})
268
269" remainder of syntax highlighting
270call s:h("MatchParen", {"bg": s:bg_subtle, "fg": s:norm})
271call s:h("qfLineNr", {"fg": s:medium_gray})
272
273" hi helpHyperTextJump guifg=#5FAFD7 ctermfg=74
274
275" HTML syntax
276hi! link htmlTag Special
277hi! link htmlEndTag htmlTag
278
279hi! link htmlTagName KeyWord
280" html5 tags show up as htmlTagN
281hi! link htmlTagN Keyword
282
283" HTML content
284call s:h("htmlH1", {"fg": s:head_a, "gui": "bold,italic", "cterm": "bold" })
285call s:h("htmlH2", {"fg": s:head_a, "gui": "bold" , "cterm": "bold" })
286call s:h("htmlH3", {"fg": s:head_b, "gui": "italic" , "cterm": "italic" })
287call s:h("htmlH4", {"fg": s:head_b, "gui": "italic" , "cterm": "italic" })
288call s:h("htmlH5", {"fg": s:head_c })
289call s:h("htmlH6", {"fg": s:head_c })
290call s:h("htmlLink", {"fg": s:blue , "gui": "underline" , "cterm": "underline"})
291call s:h("htmlItalic", { "gui": "italic" , "cterm": "italic" })
292call s:h("htmlBold", { "gui": "bold" , "cterm": "bold" })
293call s:h("htmlBoldItalic",{ "gui": "bold,italic", "cterm": "bold" })
294" hi htmlString guifg=#87875f guibg=NONE gui=NONE ctermfg=101 ctermbg=NONE cterm=NONE
295
296" tpope/vim-markdown
297call s:h("markdownBlockquote", {"fg": s:norm})
298call s:h("markdownBold", {"fg": s:norm , "gui": "bold" , "cterm": "bold" })
299call s:h("markdownBoldItalic", {"fg": s:norm , "gui": "bold,italic", "cterm": "bold" })
300call s:h("markdownEscape", {"fg": s:norm})
301call s:h("markdownH1", {"fg": s:head_a, "gui": "bold,italic", "cterm": "bold" })
302call s:h("markdownH2", {"fg": s:head_a, "gui": "bold" , "cterm": "bold" })
303call s:h("markdownH3", {"fg": s:head_a, "gui": "italic" , "cterm": "italic"})
304call s:h("markdownH4", {"fg": s:head_a, "gui": "italic" , "cterm": "italic"})
305call s:h("markdownH5", {"fg": s:head_a})
306call s:h("markdownH6", {"fg": s:head_a})
307call s:h("markdownHeadingDelimiter", {"fg": s:norm})
308call s:h("markdownHeadingRule", {"fg": s:norm})
309call s:h("markdownId", {"fg": s:medium_gray})
310call s:h("markdownIdDeclaration", {"fg": s:norm_subtle})
311call s:h("markdownItalic", {"fg": s:norm , "gui": "italic" , "cterm": "italic"})
312call s:h("markdownLinkDelimiter", {"fg": s:medium_gray})
313call s:h("markdownLinkText", {"fg": s:norm})
314call s:h("markdownLinkTextDelimiter", {"fg": s:medium_gray})
315call s:h("markdownListMarker", {"fg": s:norm})
316call s:h("markdownOrderedListMarker", {"fg": s:norm})
317call s:h("markdownRule", {"fg": s:norm})
318call s:h("markdownUrl", {"fg": s:medium_gray, "gui": "underline", "cterm": "underline"})
319call s:h("markdownUrlDelimiter", {"fg": s:medium_gray})
320call s:h("markdownUrlTitle", {"fg": s:norm})
321call s:h("markdownUrlTitleDelimiter", {"fg": s:medium_gray})
322call s:h("markdownCode", {"fg": s:norm, "bg": s:code_bg})
323call s:h("markdownCodeDelimiter", {"fg": s:norm, "bg": s:code_bg})
324
325" plasticboy/vim-markdown
326call s:h("mkdBlockQuote", {"fg": s:norm})
327call s:h("mkdDelimiter", {"fg": s:medium_gray})
328call s:h("mkdID", {"fg": s:medium_gray})
329call s:h("mkdLineContinue", {"fg": s:norm})
330call s:h("mkdLink", {"fg": s:norm})
331call s:h("mkdLinkDef", {"fg": s:medium_gray})
332call s:h("mkdListItem", {"fg": s:norm})
333call s:h("mkdNonListItemBlock", {"fg": s:norm}) " bug in syntax?
334call s:h("mkdRule", {"fg": s:norm})
335call s:h("mkdUrl", {"fg": s:medium_gray, "gui": "underline", "cterm": "underline"})
336call s:h("mkdCode", {"fg": s:norm, "bg": s:code_bg})
337call s:h("mkdIndentCode", {"fg": s:norm, "bg": s:code_bg})
338
339" gabrielelana/vim-markdown
340call s:h("markdownBlockquoteDelimiter", {"fg": s:norm})
341call s:h("markdownInlineDelimiter", {"fg": s:norm})
342call s:h("markdownItemDelimiter", {"fg": s:norm})
343call s:h("markdownLinkReference", {"fg": s:medium_gray})
344call s:h("markdownLinkText", {"fg": s:norm})
345call s:h("markdownLinkTextContainer", {"fg": s:medium_gray})
346call s:h("markdownLinkUrl", {"fg": s:medium_gray, "gui": "underline", "cterm": "underline"})
347call s:h("markdownLinkUrlContainer", {"fg": s:medium_gray})
348call s:h("markdownFencedCodeBlock", {"fg": s:norm, "bg": s:code_bg})
349call s:h("markdownInlineCode", {"fg": s:norm, "bg": s:code_bg})
350
351" mattly/vim-markdown-enhancements
352call s:h("mmdFootnoteDelimiter", {"fg": s:medium_gray})
353call s:h("mmdFootnoteMarker", {"fg": s:norm})
354call s:h("mmdTableAlign", {"fg": s:norm})
355call s:h("mmdTableDelimiter", {"fg": s:norm})
356call s:h("mmdTableHeadDelimiter", {"fg": s:norm})
357call s:h("mmdTableHeader", {"fg": s:norm})
358call s:h("mmdTableCaptionDelimiter", {"fg": s:norm})
359call s:h("mmdTableCaption", {"fg": s:norm})
360
361" Textile content
362" https://github.com/timcharper/textile.vim/blob/master/syntax/textile.vim
363"call s:h("txtBold", {"fg": s:norm , "gui": "bold" , "cterm": "bold" })
364"call s:h("txtEmphasis", {"fg": s:norm , "gui": "italic" , "cterm": "italic"})
365
366" XML content
367hi! link xmlTag htmlTag
368hi! link xmlEndTag xmlTag
369hi! link xmlTagName htmlTagName
370
371" Signify, git-gutter
372if g:pencil_gutter_color == 1
373 hi link SignifySignAdd DiffAdd
374 hi link SignifySignDelete DiffDelete
375 hi link SignifySignChange DiffChange
376 hi link GitGutterAdd DiffAdd
377 hi link GitGutterDelete DiffDelete
378 hi link GitGutterChange DiffChange
379 hi link GitGutterChangeDelete DiffChange
380else
381 hi link SignifySignAdd LineNr
382 hi link SignifySignDelete LineNr
383 hi link SignifySignChange LineNr
384 hi link GitGutterAdd LineNr
385 hi link GitGutterDelete LineNr
386 hi link GitGutterChange LineNr
387 hi link GitGutterChangeDelete LineNr
388endif
diff --git a/nvim/.config/nvim/init.vim b/nvim/.config/nvim/init.vim
index 1184e2d..1184e2d 100644..100755
--- a/nvim/.config/nvim/init.vim
+++ b/nvim/.config/nvim/init.vim