Git Product home page Git Product logo

nord.nvim's Introduction

Nord.nvim

A port of the popular and simplistic nord colour scheme to neovim. The trunk branch is an exact clone of the nord-vim colourscheme but written in lush.nvim.

nord.nvim

Customization

The configuration options are set the same way as in the vim version, through vim global variables. Every option that is possible to set in nord-vim is included. The defaults are preserved. For previews and full descriptions, see the official nord vim port configuration website page.

Option Default Description
vim.g.nord_cursor_line_number_background 0 Use the same background on number when cursorline enabled
vim.g.nord_uniform_status_lines 0 Use the same background for all statuslines on split windows
vim.g.nord_bold_vertical_split_line 0 Lighter background for vertical split
vim.g.nord_uniform_diff_background 0 Use forground colours in diffs
vim.g.nord_bold 1 Enable bold font
vim.g.nord_italic 1 Enable italic font
vim.g.nord_italic_comments 0 Use italic font for comments
vim.g.nord_underline 0 Enable underlining

Additional Functionality

Modularity of Specifications

Due to the features of lush.nvim and the added capabilities from using lua, it is possible to load languages and plugin specifications for colours modularly. You can now only load the plugins and languages that you actually use. This possibility is added by setting

-- Languages
vim.g.nord_langs = {'c', 'python', 'yaml'}  -- 'asciidoc', 'awk', 'c', 'cmake', 'cs', 'css', 'dosini', 'dt', 'gitconfig', 'go', 'help', 'html', 'java', 'json', 'less', 'lisp', 'lua', 'markdown', 'perl', 'php', 'pod', 'python', 'ruby', 'rust', 'sass', 'sh', 'sql', 'vim', 'xml', 'yaml'

-- Plugins
vim.g.nord_pkgs = {'gitsigns', 'vim-startify'} -- 'ale', 'coc', 'ctrlp', 'haskell-vim', 'jedi-vim', 'nerdtree', 'vim-clap', 'vim-fugitive', 'vim-gitgutter', 'vim-indent-guides', 'vim-javascript', 'vim-markdown', 'vim-plug', 'vim-signature', 'vim-signify', 'vimwiki', 'vim-yaml', 'yats'

This may decrease your loading time. It should not be an issue on modern machines, but nevertheless, it makes the loading just a little bit more snappy and you can be sure that nothing you do not care for is slowing you down.

The default behaviour remains the same, that is, that all the language support specs and plugins that are in the original are loaded. You can add others by defining the global variables as stated above. Additional package support groups you can add are {'vimtex', 'cmp', 'gitsigns', 'vim-startify'} and languages {'gitcommit'}.

Tweaking

Since this port is written in lush.nvim, you can easily tweak the individual colours. Just open lua/nord-nvim.lua and customize the colours using the lush colour methods.

For example, if you want to make the background a bit darker

...
Normal {fg = clrs.nord4, bg = clrs.nord0.darken(10)},
...

You can preview the colour groups with the :Lushify if the lush.nvim plugin is loaded. For more methods and possibilities, look into lush.nvim (It is amazing!).

Installation

use {
    'kunzaatko/nord.nvim',
    requires = {'rktjmp/lush.nvim', opt=true},
    config = function()
        vim.cmd("colorscheme nord")
    end,
} -- colorscheme
Plug 'kunzaatko/nord.nvim'
colorscheme nord

Plugins

All plugins that are in the vim port are included.

Contribution

This branch is intended to be an exact copy of the vim port in the base spec. However, if you want to add support for a plugin, you can do so by adding the spec to the lua/pkgs/ directory. To load it by default, you should add it to the default list vim.g.nord_pkgs in lua/nord-nvim.lua. Don't forget to add it to the README.md to document it for other users.

If you want a customized (not the unofficial) nord theme, switch to the colourful branch. There you can file issues even for the base specification, if you think anything could look better and submit anykind of PRs.

nord.nvim's People

Contributors

casonadams avatar kazy avatar kunzaatko avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.