diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-07-10 19:34:48 +0200 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2022-07-10 19:34:57 +0200 |
| commit | 6e788a6e4e78d7557840f504847754fae22269f3 (patch) | |
| tree | 727a203fffa422b93db8b70bd935cc1ada1b6981 /after/plugin | |
| parent | b65f8c6c939139d5aeafef381517f894608ef518 (diff) | |
| download | nvim-conf-6e788a6e4e78d7557840f504847754fae22269f3.tar.gz nvim-conf-6e788a6e4e78d7557840f504847754fae22269f3.zip | |
refactor, and change colors
Diffstat (limited to 'after/plugin')
| -rw-r--r-- | after/plugin/cmp.lua (renamed from after/plugin/completition.lua) | 11 | ||||
| -rw-r--r-- | after/plugin/colors.lua | 16 | ||||
| -rw-r--r-- | after/plugin/nightfox.lua | 16 |
3 files changed, 18 insertions, 25 deletions
diff --git a/after/plugin/completition.lua b/after/plugin/cmp.lua index 8b260d2..ffafe96 100644 --- a/after/plugin/completition.lua +++ b/after/plugin/cmp.lua @@ -3,6 +3,8 @@ if not ok then return end +local _ = require("alpha.colors") + local lspkind = require("lspkind") local luasnip = require("luasnip") local cmp_autopairs = require("nvim-autopairs.completion.cmp") @@ -127,12 +129,3 @@ require("lspconfig")["emmet_ls"].setup({ capabilities = capabilities, }) -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) diff --git a/after/plugin/colors.lua b/after/plugin/colors.lua deleted file mode 100644 index d6d0d18..0000000 --- a/after/plugin/colors.lua +++ /dev/null @@ -1,16 +0,0 @@ -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/after/plugin/nightfox.lua b/after/plugin/nightfox.lua new file mode 100644 index 0000000..beb5c44 --- /dev/null +++ b/after/plugin/nightfox.lua @@ -0,0 +1,16 @@ +local ok, nightfox = pcall(require, "nightfox") +if not ok then + return +end + +nightfox.setup({ + options = { + styles = { + comments = "italic", + keywords = "bold", + types = "italic,bold", + } + } +}) + +vim.cmd("colorscheme duskfox") |