Onenord is a Neovim theme written in Lua that combines the Nord and Atom One Dark color palettes. More specifically, it seeks to add more vibrance to the Nord theme and provide a great programming experience by leveraging Treesitter!
- Treesitter
- LSP Diagnostics
- Trouble
- Git Signs
- Git Gutter
- Neogit
- Telescope
- Cmp
- NvimTree
- WhichKey
- Indent Blankline
- Dashboard
- BufferLine
- Lualine
- Notify
- Lightspeed
- Sneak
- Hop
- Fern
- Barbar
- LSP Saga
- Dap
- Neovim >= 0.5.0
Install via your favourite package manager:
" If you are using Vim Plug
Plug 'rmehri01/onenord.nvim', { 'branch': 'main' }
-- If you are using Packer
use 'rmehri01/onenord.nvim'
For the defaults, simply enable the colorscheme:
" Vim Script
colorscheme onenord
-- Lua
require('onenord').setup()
To enable the onenord
theme for Lualine
, specify it in your lualine settings:
require('lualine').setup {
options = {
-- ... your lualine config
theme = 'onenord'
-- ... your lualine config
}
}
The configuration of different options is done through a setup function which will handle setting the colors, so there's no need to set colorscheme
yourself! This is an example of the function with the default values:
require('onenord').setup({
borders = true, -- Split window borders
italics = {
comments = false, -- Italic comments
strings = false, -- Italic strings
keywords = true, -- Italic keywords
functions = false, -- Italic functions
variables = false, -- Italic variables
},
disable = {
background = false, -- Disable setting the background color
cursorline = false, -- Disable the cursorline
eob_lines = true, -- Hide the end-of-buffer lines
},
custom_highlights = {}, -- Overwrite default highlight groups
})
Here is an example of overwriting the default highlight groups:
local colors = require("onenord.colors")
require("onenord").setup({
custom_highlights = {
TSConstructor = { fg = colors.dark_blue },
},
})
You can also use the onenord color palette for other plugins using local colors = require("onenord.colors")
!
Extra color configs for Kitty, Alacritty, and iTerm can be found in extras. To use them, refer to their respective documentation.
I was highly inspired by these other awesome themes, check them out!