diff options
| -rw-r--r-- | init.vim | 3 | ||||
| -rw-r--r-- | lua/alpha/colors.lua | 16 | ||||
| -rw-r--r-- | lua/alpha/completition.lua | 16 | ||||
| -rw-r--r-- | lua/alpha/init.lua | 1 |
4 files changed, 28 insertions, 8 deletions
@@ -52,6 +52,9 @@ inoremap > ><c-g>u vnoremap < <gv vnoremap > >gv +" disable vim-go K binding +let g:go_doc_keywordprg_enabled = 0 + lua require('plugins') lua require("alpha") diff --git a/lua/alpha/colors.lua b/lua/alpha/colors.lua new file mode 100644 index 0000000..d6d0d18 --- /dev/null +++ b/lua/alpha/colors.lua @@ -0,0 +1,16 @@ +local Color, colors, Group, groups, styles = require('colorbuddy').setup() + +-- Use Color.new(<name>, <#rrggbb>) to create new colors +-- They can be accessed through colors.<name> +Color.new('background', '#282c34') +Color.new('red', '#cc6666') +Color.new('green', '#99cc99') +Color.new('yellow', '#f0c674') + +-- Define highlights in terms of `colors` and `groups` +Group.new('Comment' , colors.yellow , colors.background , styles.bold) +Group.new('Special' , groups.Comment , groups.Comment , groups.Comment) +Group.new('NonText' , groups.Comment , groups.Comment , groups.Comment) + +-- Define highlights in relative terms of other colors +Group.new('Error' , colors.red:light() , nil , styles.bold) diff --git a/lua/alpha/completition.lua b/lua/alpha/completition.lua index 98a2c86..5bc8330 100644 --- a/lua/alpha/completition.lua +++ b/lua/alpha/completition.lua @@ -74,12 +74,12 @@ cmp.setup { capabilities = capabilities } --- local Group = require("colorbuddy.group").Group --- local g = require("colorbuddy.group").groups --- local s = require("colorbuddy.style").styles +local Group = require("colorbuddy.group").Group +local g = require("colorbuddy.group").groups +local s = require("colorbuddy.style").styles --- Group.new("CmpItemAbbr", g.Comment) --- Group.new("CmpItemAbbrDeprecated", g.Error) --- Group.new("CmpItemAbbrMatchFuzzy", g.CmpItemAbbr.fg:dark(), nil, s.italic) --- Group.new("CmpItemKind", g.Special) --- Group.new("CmpItemMenu", g.NonText) +Group.new("CmpItemAbbr", g.Comment) +Group.new("CmpItemAbbrDeprecated", g.Error) +Group.new("CmpItemAbbrMatchFuzzy", g.CmpItemAbbr.fg:dark(), nil, s.italic) +Group.new("CmpItemKind", g.Special) +Group.new("CmpItemMenu", g.NonText) diff --git a/lua/alpha/init.lua b/lua/alpha/init.lua index 7b58612..8abc5e6 100644 --- a/lua/alpha/init.lua +++ b/lua/alpha/init.lua @@ -1,4 +1,5 @@ require("alpha.global") +require("alpha.colors") require("alpha.telescope") require("alpha.refactoring") require("alpha.snippets") |