Add bufferline support
authorIsrothy <isrothy@gmail.com>
Thu, 8 Sep 2022 14:40:18 +0000 (22:40 +0800)
committerIsrothy <isrothy@gmail.com>
Thu, 8 Sep 2022 14:40:18 +0000 (22:40 +0800)
README.md

index 47f2f3727b0c6fc848f23d5d12a7269eaab0db3c..22ab77dd64a49db1107a0863881b1e34bab13b84 100644 (file)
--- a/README.md
+++ b/README.md
@@ -1,5 +1,5 @@
 
-# shaunsingh/nord.nvim 
+# shaunsingh/nord.nvim
 
 ## Neovim theme based off of the [Nord Color Palette.](https://www.nordtheme.com/docs/colors-and-palettes)
 
@@ -57,7 +57,7 @@ use 'shaunsingh/nord.nvim'
 ## ðŸŒ“ Usage
 
 Enable the colorscheme:
-```vim 
+```vim
 "Vim-Script:
 colorscheme nord
 ```
@@ -90,7 +90,7 @@ require('lualine').setup {
 | nord_enable_sidebar_background  | `false`     | Re-enables the background of the sidebar if you disabled the background of everything
 | nord_italic                     | `true`      | enables/disables italics
 | nord_uniform_diff_background    | `false`     | enables/disables colorful backgrounds when used in *diff* mode
- 
+
 ```lua
 -- Example config in lua
 vim.g.nord_contrast = true
@@ -115,3 +115,210 @@ let g:nord_uniform_diff_background = v:true
 colorscheme nord
 ```
 
+To be support [BufferLine](https://github.com/akinsho/nvim-bufferline.lua), add these code to your settings:
+
+```lua
+local nord0 = "#2E3440"
+local nord1 = "#3B4252"
+local nord9 = "#81A1C1"
+local fill = nord0 --'#181c24' if separator_style is "slant"
+local indicator = nord9
+local bg = nord0
+local buffer_bg = nord0
+local buffer_bg_selected = nord1
+local buffer_bg_visible = "#2A2F3A"
+
+require("bufferline").setup({
+ highlights = {
+  fill = {
+   bg = fill
+  },
+  background = {
+   bg = bg,
+  },
+
+  buffer_selected = {
+   bg = buffer_bg_selected,
+  },
+  buffer_visible = {
+   bg = buffer_bg_visible,
+   italic = true
+  },
+
+  numbers = {
+   bg = buffer_bg,
+  },
+  numbers_selected = {
+   bg = buffer_bg_selected,
+  },
+  numbers_visible = {
+   bg = buffer_bg_visible,
+   italic = true
+  },
+
+  diagnostic = {
+   bg = buffer_bg,
+  },
+  diagnostic_selected = {
+   bg = buffer_bg_selected,
+   bold = true,
+   italic = true,
+  },
+  diagnostic_visible = {
+   bg = buffer_bg_visible
+  },
+
+  hint = {
+   bg = buffer_bg,
+  },
+  hint_visible = {
+   bg = buffer_bg_visible,
+  },
+  hint_selected = {
+   bg = buffer_bg_selected,
+   bold = true,
+   italic = true,
+  },
+  hint_diagnostic = {
+   bg = buffer_bg,
+  },
+  hint_diagnostic_visible = {
+   bg = buffer_bg_visible,
+  },
+  hint_diagnostic_selected = {
+   bg = buffer_bg_selected,
+   bold = true,
+   italic = true,
+  },
+
+  info = {
+   bg = buffer_bg;
+  },
+  info_visible = {
+   bg = buffer_bg_visible,
+  },
+  info_selected = {
+   bg = buffer_bg_selected,
+   bold = true,
+   italic = true,
+  },
+  info_diagnostic = {
+   bg = buffer_bg,
+  },
+  info_diagnostic_visible = {
+   bg = buffer_bg_visible,
+  },
+  info_diagnostic_selected = {
+   bg = buffer_bg_selected,
+   bold = true,
+   italic = true,
+  },
+
+  warning = {
+   bg = buffer_bg,
+  },
+  warning_visible = {
+   bg = buffer_bg_visible,
+  },
+  warning_selected = {
+   bg = buffer_bg_selected,
+   bold = true,
+   italic = true,
+  },
+  warning_diagnostic = {
+   bg = buffer_bg,
+  },
+  warning_diagnostic_visible = {
+   bg = buffer_bg_visible,
+  },
+  warning_diagnostic_selected = {
+   bg = buffer_bg_selected,
+   bold = true,
+   italic = true,
+  },
+  error = {
+   bg = buffer_bg,
+  },
+  error_visible = {
+   bg = buffer_bg_visible,
+  },
+  error_selected = {
+   bg = buffer_bg_selected,
+   bold = true,
+   italic = true,
+  },
+  error_diagnostic = {
+   bg = buffer_bg,
+  },
+  error_diagnostic_visible = {
+   bg = buffer_bg_visible,
+  },
+  error_diagnostic_selected = {
+   bg = buffer_bg_selected,
+   bold = true,
+   italic = true,
+  },
+
+  close_button = {
+   bg = buffer_bg,
+  },
+  close_button_visible = {
+   bg = buffer_bg_visible,
+  },
+  close_button_selected = {
+   bg = buffer_bg_selected,
+  },
+
+  duplicate = {
+   bg = buffer_bg,
+  },
+  duplicate_selected = {
+   bg = buffer_bg_selected,
+  },
+  duplicate_visible = {
+   bg = buffer_bg_visible,
+  },
+
+  separator = {
+   fg = fill,
+   bg = buffer_bg,
+  },
+  separator_selected = {
+   fg = fill,
+   bg = buffer_bg_selected,
+  },
+  separator_visible = {
+   fg = fill,
+   bg = buffer_bg_visible,
+  },
+  modified = {
+   bg = buffer_bg,
+  },
+  modified_selected = {
+   bg = buffer_bg_selected,
+  },
+  modified_visible = {
+   bg = buffer_bg_visible,
+  },
+  indicator_selected = {
+   fg = indicator,
+   bg = buffer_bg_selected,
+  },
+  pick = {
+   bg = buffer_bg,
+   bold = true,
+   italic = true,
+  },
+  pick_selected = {
+   bg = buffer_bg_selected,
+   bold = true,
+   italic = true,
+  },
+  pick_visible = {
+   bg = buffer_bg_visible,
+   bold = true,
+   italic = true,
+  },
+ },
+})
+```