- My coding projects are available on GitHub
- email: [email protected]
- discord: hi_im_bored
Neovim theme based off of the Nord Color Palette, written in lua with tree sitter support
License: GNU General Public License v2.0
First of all, thank you for this theme.
I was wondering why the foreground color of ColorColumn
is set to nord.nord0_gui
instead of nord.none
? In my opinion it would make more sense to leave the text color as it is. The following image shows a file using markdown syntax with the current foreground color.
Hi,
Firstly, thanks so much for creating this plugin - I've been using Nord for a long time, but the lack of support for treesitter meant I had to move elsewhere, so great to be able to move back :)
Just a question, not necessarily a bug. At the moment, cursorline is currently set to nord.none
, so isn't visible. On the original vim plugin, it's set to nord1_gui
(https://github.com/arcticicestudio/nord-vim/blob/5867535cea7bb6b4c219fa0726c93e4b055debd2/colors/nord.vim#L170)
However, on the original plugin, colorcolumn & cursorline conflicted as they were both using nord1_gui
. As you're using nord.active
for colorcolumn, this means that we could use nord.nord1_gui
and support both features.
Was it an intentional decision to have cursorline invisible, or would it be possible to have it changed to nord1_gui?
Thanks!
Hi,
Any idea why some of the colors are completely off on my installation?
OS: MacOS BigSur
alacritty --version
alacritty 0.9.0
nvim --version
Build type: Release
LuaJIT 2.1.0-beta3
Compilation: clang -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=1 -DNVIM_TS_HAS_SET_MATCH_LIMIT -O2 -DNDEBUG -Wall -Wextra -pedantic -Wno-unused-parameter -Wstrict-prototypes -std=gnu99 -Wshadow -Wconversion -Wmissing-prototypes -Wimplicit-fallthrough -Wvla -fstack-protector-strong -fno-common -fdiagnostics-color=auto -DINCLUDE_GENERATED_DECLARATIONS -D_GNU_SOURCE -DNVIM_MSGPACK_HAS_FLOAT32 -DNVIM_UNIBI_HAS_VAR_FROM -DMIN_LOG_LEVEL=3 -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/build/config -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/src -I/usr/local/include -I/Library/Developer/CommandLineTools/SDKs/MacOSX11.sdk/usr/include -I/usr/local/opt/gettext/include -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/build/src/nvim/auto -I/tmp/neovim-20210927-1441-demfsz/neovim-0.5.1/build/include
Compiled by brew@BigSur
Features: +acl +iconv +tui
See ":help feature-compile"
system vimrc file: "$VIM/sysinit.vim"
fall-back for $VIM: "/usr/local/Cellar/neovim/0.5.1/share/nvim"
Run :checkhealth for more info
--Lua Options
vim.cmd('syntax on')
vim.o.shortmess = vim.o.shortmess .. 'c'
vim.o.laststatus=0
vim.o.hidden = true
vim.o.whichwrap = 'b,s,<,>,[,],h,l'
vim.o.pumheight = 10
vim.o.fileencoding = 'utf-8'
vim.o.cmdheight = 2
vim.o.splitbelow = true
vim.o.splitright = true
vim.opt.termguicolors = true
vim.o.conceallevel = 0
vim.o.showtabline = 2
vim.o.showmode = true
vim.o.backup = false
vim.o.writebackup = false
vim.o.updatetime = 300
vim.o.timeoutlen = 100
vim.o.clipboard = "unnamedplus"
vim.o.hlsearch = false
vim.o.ignorecase = true
vim.o.scrolloff = 8
vim.o.sidescrolloff = 5
vim.o.mouse = "a"
vim.wo.wrap = true
vim.wo.number = true
vim.o.cursorline = true
vim.wo.signcolumn = "yes"
vim.o.rnu=true
vim.o.tabstop = 4
vim.bo.tabstop = 4
vim.o.softtabstop = 4
vim.o.shiftwidth = 4
vim.bo.shiftwidth = 4
vim.o.autoindent = true
vim.bo.autoindent = true
vim.o.expandtab = true
vim.bo.expandtab =true
--Lua Plugins config
return require('packer').startup(function()
use 'wbthomason/packer.nvim'
-- use {
--'hoob3rt/lualine.nvim',
--requires = {'kyazdani42/nvim-web-devicons', opt = true}
--}
use {'akinsho/bufferline.nvim', requires = 'kyazdani42/nvim-web-devicons'}
use {
'kyazdani42/nvim-tree.lua',
requires = 'kyazdani42/nvim-web-devicons'
}
use {'windwp/nvim-ts-autotag'}
use {'p00f/nvim-ts-rainbow'}
use {'windwp/nvim-autopairs'}
use {'folke/which-key.nvim'}
use {
'nvim-telescope/telescope.nvim',
requires = { {'nvim-lua/plenary.nvim'} }
}
use 'neovim/nvim-lspconfig'
use 'hrsh7th/cmp-nvim-lsp'
use 'hrsh7th/cmp-buffer'
use 'hrsh7th/nvim-cmp'
use 'hrsh7th/cmp-vsnip'
use 'hrsh7th/vim-vsnip'
use 'onsails/lspkind-nvim'
use {'nvim-treesitter/nvim-treesitter', run = ":TSUpdate"}
use 'shaunsingh/nord.nvim'
end)
Screen capture of how neovim looks with nord enabled
As lua in neovim improves, more and more neovim plugins are starting to pop up. Personally, I try to keep my config light on plugins, so its becoming impossible for me to watch new plugins and add their highlights to the theme quickly
If any of you use plugins that you would like theme highlights for, let me know
And I will add it as soon as I get time
Ive noticed that function names in various treesitter languages have the same color as built ins key words, another example is in golang type name struct{}
all have the same color.
Is this intended? Ive done a cross comparrison with a few other nord themes, vs code for example, and they do have colors for the functions names, although they have a lot less color for many other things so i do prefer this nvim port.
Using neovim:
NVIM v0.5.0
Build type: RelWithDebInfo
LuaJIT 2.1.0-beta3
it appears that I'm doing something wrong or the value I set for nord_disable_background
does not reach the relevant code in theme.lua
.
I use a vim-script config and tried setting before and after loading the plugin, but no effect:
[ ... truncated ... ]
let g:nord_disable_background = 1
" Load vim-plug plugins
call plug#begin()
Plug 'sheerun/vim-polyglot'
Plug 'ryanoasis/vim-devicons'
Plug 'preservim/nerdtree'
Plug 'pearofducks/ansible-vim'
Plug 'Yggdroot/indentLine'
Plug 'itchyny/lightline.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'shaunsingh/nord.nvim'
call plug#end()
colorscheme nord
let g:nord_disable_background = 1
[ ... truncated ... ]
However, when I comment out the if vim.g.nord_disable_background == true then
statement in theme.lua
so that it unconditionally always sets the editor.Normal color to nord.none, then it works.
I love this colour scheme and have been using it for a few weeks, thanks. There's only one little thing missing from the original Nord theme that I think is very useful, the g:nord_italic_comments
setting.
It was implemented here.
got this error when attempting to do :colorscheme nord
I was trying to customize a few highlight groups in the packer config function by doing something like this:
config = function()
require('nord').set()
local util = require('nord.util')
local colors = require('nord.colors')
util.highlight('WhichKey', {bg = colors.nord_gui0})
end
And noticed that highlights weren't sticking. Via the power of print statements I determined that after the config function, the ret function was being called a second time via:
Line 8 in 296167d
I got my highlights working by doing them in a separate module, but I figured that this was probably not desired behavior? Could also be a user error.
👋 Thank you for making nord.nvim
!
Do you think its possible to add a mechanic to override colours for specific groups?
For example, I'd like to use a different (Nord) colour for structs in Rust.
I'd be happy to contribute 😸
Please do not commit the file doc/tags
to the repo, the tags files will be generated automatically by nvim if helptags
is run.
Hi!
Is it possible to override local syntax highlight group? I'm trying to make statusline of the active window a little bit brighter. One can modify the StatusLine
in theme.lua
. But is possible to override its value in init.lua
?
I have (unsuccessfully) tried something like this:
use {
'shaunsingh/nord.nvim',
config = function()
vim.cmd[[colorscheme nord]]
vim.g.nord_italic = true
StatusLine = { fg = nord.nord4_gui, bg = nord.nord2_gui }
end,
}
What is the correct way to override StatusLine
?
Thank you!
I would suggest either making this configurable, or changing it to a darker colour like the nord.comments
colour... the current white is way too bright when you have deeply nested code.
Is there an option to disable italics?
First off, thanks for your work on this colorscheme.
I'd like to use my terminal's background colour throughout neovim's UI. I'm reproducing with a minimal init.lua
which installs packer, nord.nvim and configures the colorscheme
vim.g.nord_disable_background = true
require("nord").set()
The theme looks correct for the main editing window and telescope's file preview, but the Results
and Find Files
floating windows aren't using the terminal background.
How can I configure nord.nvim so that all of telescope's floating windows use the terminal background color?
Here is the error i get
Error detected while processing /home/ryan/.config/nvim/plugged/nord.nvim/colors/nord.vim:
line 9:
E5105: Error while calling lua chunk: .../ryan/.config/nvim/plugged/nord.nvim/lua/nord/colors.lua:44: attempt to index field 'g' (a nil value)
And then here is my init.vim
call plug#begin()
Plug 'sheerun/vim-polyglot'
Plug 'ryanoasis/vim-devicons'
Plug 'preservim/nerdtree'
Plug 'pearofducks/ansible-vim'
Plug 'Yggdroot/indentLine'
Plug 'itchyny/lightline.vim'
Plug 'neoclide/coc.nvim', {'branch': 'release'}
Plug 'shaunsingh/nord.nvim'
call plug#end()
colorscheme nord
I'm trying to override the default highlight groups with my custom ones. For example, when trying to change the guifg color of the NvimTreeEndOfBuffer
group (to hide the ~ characters like the screenshot in the README), those changes don't take effect. I'm doing the following:
require "nord".set()
vim.cmd[[hi NvimTreeEndOfBuffer guifg=#2E3440]]
Also tried using vim.cmd[[colo nord]]
and using the nord.util.highlight
function, but none of those worked for me. Any ideas on how to override any highlight group? Thanks.
Really appreciate you stepping up and creating this project and loving it. I'm confused about one thing though. One of the colors used for files with the vim filetype doesn't seem to belong to the Nord colorscheme and I'm confused if this is because of some misconfiguration on my end or if this is intentional.
Another question I had is what is the tabline/bufferline being used in the screenshot you've shared in the readme. It looks amazing and since nvim-bufferline seems to be the only bufferline that's supported, I tried it out but can't get the look that you have going on.
f6464fa has several paste errors that mangled the LICENSE file
nord_italic
option doesn't work properly.
Lines 281 to 283 in 5cb83df
NeogitHunkHeader
: Line 313 in 5cb83df
style = 'reverse'
shouldn't be used there?nor
:Line 47 in 5cb83df
os.execute("sleep 10")
anywhere in your async function, than run neovim. You'll see, that neovim isn't responding for 10 seconds after startup. So this async just complicates code, trick profiler, but doesn't improve loading time.Nord has an issue/PR for tree sitter support.
This might be of interest and I have linked this repo to the issue there.
Feel free to close this if it is of no interest. ^_^
Hi,
can you add styles for romgrk/barbar.nvim? Or can you give me a hint, where i can get and add stylings for bufferlines? (I could pr you then).
Kind regards, Alexander
It's a great theme and I love it. It works on almost terminal emulators. Although, like some terminals (e.g. Apple Terminal.app) which doesn't support truecolor (24-bit) fails to show the color scheme correctly. Is it possible to modify the theme for such terminal emulators?
A recent change neovim/neovim#15585 replaced LSP diagnostic highlight groups, see neovim/neovim#14090 (comment).
the default red might be a bit jarring in barbar.nvim's buffer picking function. can this be changed to another color which fits with the nord theme?
The syntax highlighting of nord.nvim (nord vim too) don't follow the same syntax highlighting as other themes when using treesitter's highlighting functionality.
Notice the lack of highlighting in the outputsBuilder
part.
See below:
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.