diff options
| -rw-r--r-- | .config/i3/config | 1 | ||||
| -rw-r--r-- | .config/nvim/colors/prismatic.vim | 14 | ||||
| -rw-r--r-- | .config/nvim/ftdetect/hobbylang.vim | 1 | ||||
| -rw-r--r-- | .config/nvim/init.lua | 2 | ||||
| -rw-r--r-- | .config/nvim/lua/plugin/packer.lua | 3 | ||||
| -rw-r--r-- | .config/nvim/syntax/hobbylang.vim | 38 |
6 files changed, 49 insertions, 10 deletions
diff --git a/.config/i3/config b/.config/i3/config index d7a03bc..f7f62c9 100644 --- a/.config/i3/config +++ b/.config/i3/config @@ -10,6 +10,7 @@ exec --no-startup-id dex --autostart --environment i3 exec --no-startup-id xss-lock --transfer-sleep-lock -- i3lock --nofork exec --no-startup-id nm-applet exec --no-startup-id nitrogen --restore +exec --no-startup-id setxkbmap -option caps:super exec_always --no-startup-id sh ~/.config/polybar/launch.sh exec --no-startup-id discord diff --git a/.config/nvim/colors/prismatic.vim b/.config/nvim/colors/prismatic.vim index 797f35b..a6fe2e3 100644 --- a/.config/nvim/colors/prismatic.vim +++ b/.config/nvim/colors/prismatic.vim @@ -32,14 +32,14 @@ let s:bg = s:black let s:comment_fg = { "gui": "#65737E", "cterm": "241" } let s:gutter_bg = { "gui": "#242424", "cterm": "236" } -let s:gutter_fg = s:blue +let s:gutter_fg = { "gui": "#514d4d", "cterm": "237" } let s:non_text = { "gui": "#373C45", "cterm": "239" } let s:cursor_line = { "gui": "#403c3c", "cterm": "237" } -let s:color_col = { "gui": "#313640", "cterm": "237" } +let s:color_col = { "gui": "#403c3c", "cterm": "237" } let s:selection = { "gui": "#403c3c", "cterm": "239" } -let s:vertsplit = { "gui": "#313640", "cterm": "237" } +let s:vertsplit = { "gui": "#403c3c", "cterm": "237" } function! s:h(group, fg, bg, attr) @@ -85,8 +85,8 @@ call s:h("MoreMsg", s:fg, "", "") call s:h("WarningMsg", s:red, "", "") call s:h("Question", s:purple, "", "") -call s:h("Pmenu", s:bg, s:fg, "") -call s:h("PmenuSel", s:fg, s:blue, "") +call s:h("Pmenu", s:fg, s:bg, "") +call s:h("PmenuSel", s:bg, s:fg, "") call s:h("PmenuSbar", "", s:selection, "") call s:h("PmenuThumb", "", s:fg, "") @@ -95,8 +95,8 @@ call s:h("SpellCap", s:yellow, "", "") call s:h("SpellLocal", s:yellow, "", "") call s:h("SpellRare", s:yellow, "", "") -call s:h("StatusLine", s:blue, s:cursor_line, "") -call s:h("StatusLineNC", s:comment_fg, s:cursor_line, "") +call s:h("StatusLine", s:white, s:cursor_line, "") +call s:h("StatusLineNC", s:white, s:bg, "") call s:h("TabLine", s:comment_fg, s:cursor_line, "") call s:h("TabLineFill", s:comment_fg, s:cursor_line, "") call s:h("TabLineSel", s:fg, s:bg, "") diff --git a/.config/nvim/ftdetect/hobbylang.vim b/.config/nvim/ftdetect/hobbylang.vim new file mode 100644 index 0000000..263edde --- /dev/null +++ b/.config/nvim/ftdetect/hobbylang.vim @@ -0,0 +1 @@ +au BufNewFile,BufRead *.hl set filetype=hobbylang diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 7d4a97f..70bb252 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -1,3 +1,5 @@ require("opt") require("map") require("plugin") + +vim.cmd("colorscheme prismatic") diff --git a/.config/nvim/lua/plugin/packer.lua b/.config/nvim/lua/plugin/packer.lua index 33a90c1..f23e492 100644 --- a/.config/nvim/lua/plugin/packer.lua +++ b/.config/nvim/lua/plugin/packer.lua @@ -56,9 +56,6 @@ return require("packer").startup(function(use) use { "loctvl842/monokai-pro.nvim", - config = function() - vim.cmd("colorscheme monokai-pro-spectrum") - end } use { diff --git a/.config/nvim/syntax/hobbylang.vim b/.config/nvim/syntax/hobbylang.vim new file mode 100644 index 0000000..e1953d0 --- /dev/null +++ b/.config/nvim/syntax/hobbylang.vim @@ -0,0 +1,38 @@ +if exists("b:current_syntax") + finish +endif + +syn keyword hlStatement break continue return self +syn keyword hlLabel case default +syn keyword hlConditional if else match +syn keyword hlRepeat while loop for +syn keyword hlStructure struct enum var func +syn keyword hlModifier static +syn keyword hlLiteral true false nil + +syn match hlFunction /\<\h\w*\ze\_s*(/ + +syn match hlComment /\/\/.*/ +syn match hlType /[^a-z0-9_][A-Z][A-z0-9_]*/ +syn match hlNumber /\<\d\+\>/ +syn match hlNumber /\<\d\+\.\d*/ +syn match hlOperator /=|\+=|-=|\*=|\/=|%=|\*\*=|\+|-|\*\*|\*|\/|%|<|>|<=|>=|==|!=|!|\.\./ + +syn region hlString start="\"" end="\"" +syn region hlString start="'" end="'" + +hi def link hlStructure Structure +hi def link hlFunction Function +hi def link hlStatement Statement +hi def link hlLabel Label +hi def link hlConditional Conditional +hi def link hlRepeat Repeat +hi def link hlModifier StorageClass +hi def link hlType Type +hi def link hlString String +hi def link hlOperator Operator +hi def link hlNumber Constant +hi def link hlLiteral Constant +hi def link hlComment Comment + +let b:current_syntax = 'hl' |
