Skip to content

Commit

Permalink
feat: plugin support nvim-treesitter-context
Browse files Browse the repository at this point in the history
fixed #184

In this commit I also updated 'hrsh7th/nvim-cmp' Abbrs highlights
for light themes.
  • Loading branch information
ful1e5 committed Jun 11, 2022
1 parent 9595d81 commit 1d9f23a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
### Added

- feat: plugin support [sindrets/diffview.nvim](https://github.com/sindrets/diffview.nvim) fixed #182
- feat: plugin support [nvim-treesitter/nvim-treesitter-context](https://github.com/nvim-treesitter/nvim-treesitter-context) fixed #184

### Fixes

Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,6 +159,7 @@ set -as terminal-overrides ',*:Setulc=\E[58::2::%p1%{65536}%/%d::%p1%{256}%/%{25
[rcarriga/nvim-notify](https://github.com/rcarriga/nvim-notify) ·
[kyazdani42/nvim-tree.lua](https://github.com/kyazdani42/nvim-tree.lua) ·
[nvim-treesitter/nvim-treesitter](https://github.com/nvim-treesitter/nvim-treesitter) ·
[nvim-treesitter/nvim-treesitter-context](https://github.com/nvim-treesitter/nvim-treesitter-context) ·
[kyazdani42/nvim-web-devicons](https://github.com/kyazdani42/nvim-web-devicons) ·
[nvim-telescope/telescope.nvim](https://github.com/nvim-telescope/telescope.nvim) ·
[airblade/vim-gitgutter](https://github.com/airblade/vim-gitgutter) ·
Expand Down
5 changes: 5 additions & 0 deletions lua/github-theme/theme.lua
Original file line number Diff line number Diff line change
Expand Up @@ -461,7 +461,9 @@ theme.setup = function(cfg)
CmpDocumentationBorder = { links = 'FloatBorder' },
CmpItemAbbrDeprecated = { fg = c.syntax.comment, style = 'strikethrough' },
CmpItemAbbrMatch = { fg = c.blue },
CmpItemAbbrDefault = { fg = c.fg_light },
CmpItemAbbrMatchFuzzy = { link = 'CmpItemAbbrMatch' },
CmpItemMenuDefault = { link = 'CmpItemAbbrDefault' },

-- Cmp Item Kind
CmpItemKindColorDefault = { fg = c.bright_red },
Expand Down Expand Up @@ -552,6 +554,9 @@ theme.setup = function(cfg)
DiffDelete = { fg = c.diff.delete_fg, bg = c.diff.delete },
DiffText = { link = 'DiffChange' },
DiffviewFilePanelFileName = { fg = c.fg_light },

-- nvim-treesitter-context
TreesitterContext = { bg = vim.o.background == 'light' and util.lighten(c.blue, 0.9) or util.darken(c.blue, 0.2) },
}

if cfg.hide_inactive_statusline then
Expand Down

0 comments on commit 1d9f23a

Please sign in to comment.