Skip to content

Commit

Permalink
feat: added basic coc.nvim highlights projekt0n#141
Browse files Browse the repository at this point in the history
  • Loading branch information
ful1e5 committed Dec 15, 2021
1 parent 4156c99 commit bbb3a55
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 18 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Dark background color for inactive statusline and lualine
- Minimal look (`hide_inactive_statusline`) removed from lualine
- `terminal` highlight added for lualine
- Added basic [coc.nvim](https://github.com/neoclide/coc.nvim) highlights #141

### Fixes

Expand Down
25 changes: 13 additions & 12 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,26 +24,27 @@ Extra color configs for **kitty**, **iTerm**, **Konsole**, **tmux** and **Alacri

## Plugin Support

- [ALE](https://github.com/dense-analysis/ale)
- [Bultin lsp diagnostics](https://neovim.io/doc/user/lsp.html)
- [ale](https://github.com/dense-analysis/ale)
- [circles.nvim](https://github.com/projekt0n/circles.nvim)
- [coc.nvim](https://github.com/neoclide/coc.nvim)
- [dashboard-nvim](https://github.com/glepnir/dashboard-nvim)
- [Git Signs](https://github.com/lewis6991/gitsigns.nvim)
- [Indent Blankline](https://github.com/lukas-reineke/indent-blankline.nvim)
- [LSP Diagnostics](https://neovim.io/doc/user/lsp.html)
- [LSP Trouble](https://github.com/folke/lsp-trouble.nvim)
- [gitsigns.nvim](https://github.com/lewis6991/gitsigns.nvim)
- [indent-blankline.nvim](https://github.com/lukas-reineke/indent-blankline.nvim)
- [lsp-trouble.nvim](https://github.com/folke/lsp-trouble.nvim)
- [lspsaga.nvim](https://github.com/glepnir/lspsaga.nvim)
- [Lualine](https://github.com/hoob3rt/lualine.nvim)
- [lualine.nvim](https://github.com/nvim-lualine/lualine.nvim)
- [neogit](https://github.com/TimUntersberger/neogit)
- [nvim-bufferline.lua](https://github.com/akinsho/nvim-bufferline.lua)
- [nvim-cmp](https://github.com/hrsh7th/nvim-cmp)
- [nvim-compe](https://github.com/hrsh7th/nvim-compe)
- [nvim-notify](https://github.com/rcarriga/nvim-notify)
- [nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua)
- [nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter)
- [nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons)
- [Neogit](https://github.com/TimUntersberger/neogit)
- [NvimTree](https://github.com/kyazdani42/nvim-tree.lua)
- [Telescope](https://github.com/nvim-telescope/telescope.nvim)
- [TreeSitter](https://github.com/nvim-treesitter/nvim-treesitter)
- [telescope.nvim](https://github.com/nvim-telescope/telescope.nvim)
- [vim-gitgutter](https://github.com/airblade/vim-gitgutter)
- [which-key.nvim](https://github.com/folke/which-key.nvim/)
- [nvim-notify](https://github.com/rcarriga/nvim-notify)
- [which-key.nvim](https://github.com/folke/which-key.nvim)

## Requirements

Expand Down
36 changes: 30 additions & 6 deletions lua/github-theme/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,11 @@ function M.setup(config)
LspDiagnosticsUnderlineInformation = {style = "undercurl", sp = c.info}, -- Used to underline "Information" diagnostics
LspDiagnosticsUnderlineHint = {style = "undercurl", sp = c.hint}, -- Used to underline "Hint" diagnostics

LspDiagnosticsError = {fg = c.error},
LspDiagnosticsWarning = {fg = c.warning},
LspDiagnosticsInformation = {fg = c.info},
LspDiagnosticsHint = {fg = c.hint},

DiagnosticError = {link = "LspDiagnosticsDefaultError"}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
DiagnosticWarn = {link = "LspDiagnosticsDefaultWarning"}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
DiagnosticInfo = {link = "LspDiagnosticsDefaultInformation"}, -- Used as the base highlight group. Other LspDiagnostic highlights link to this by default (except Underline)
Expand Down Expand Up @@ -400,11 +405,6 @@ function M.setup(config)
NvimTreeFolderName = {fg = c.fg_light},
NvimTreeOpenedFolderName = {fg = c.fg_light, style = "bold"},

LspDiagnosticsError = {fg = c.error},
LspDiagnosticsWarning = {fg = c.warning},
LspDiagnosticsInformation = {fg = c.info},
LspDiagnosticsHint = {fg = c.hint},

-- Git Default
gitcommitSummary = {fg = c.syntax.tag},

Expand Down Expand Up @@ -544,7 +544,31 @@ function M.setup(config)
NotifyWARNBody = {fg = util.lighten(c.warning, 0.1)},
NotifyINFOBody = {fg = util.lighten(c.green, 0.1)},
NotifyDEBUGBody = {link = "NotifyDEBUGTitle"},
NotifyTRACEBody = {fg = util.lighten(c.bright_magenta, 0.1)}
NotifyTRACEBody = {fg = util.lighten(c.bright_magenta, 0.1)},

-- Coc
CocErrorSign = {link = "ErrorMsg"},
CocWarningSign = {link = "WarningMsg"},
CocInfoSign = {link = "DiagnosticInfo"},
CocHintSign = {link = "DiagnosticHint"},
CocErrorFloat = {link = "ErrorMsg"},
CocWarningFloat = {link = "WarningMsg"},
CocInfoFloat = {link = "DiagnosticInfo"},
CocHintFloat = {link = "DiagnosticHint"},
CocDiagnosticsError = {link = "ErrorMsg"},
CocDiagnosticsWarning = {link = "WarningMsg"},
CocDiagnosticsInfo = {link = "DiagnosticInfo"},
CocDiagnosticsHint = {link = "DiagnosticHint"},
CocSelectedText = {fg = c.red},
CocCodeLens = {fg = c.fg_dark},

CocErrorHighlight = {link = "LspDiagnosticsUnderlineError"},
CocWarningHighlight = {link = "LspDiagnosticsUnderlineWarning"},
CocInfoHighlight = {link = "LspDiagnosticsUnderlineInformation"},
CocHintHighlight = {link = "LspDiagnosticsUnderlineHint"},

CocHighlightText = {link = "Visual"},
CocUnderline = {style = "undercurl"}
}

theme.defer = {}
Expand Down

0 comments on commit bbb3a55

Please sign in to comment.