Giter Site home page Giter Site logo

ryanbyon / nord.nvim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from shaunsingh/nord.nvim

0.0 0.0 0.0 242 KB

Neovim theme based off of the Nord Color Palette, written in lua with tree sitter support

License: GNU General Public License v2.0

Lua 100.00%

nord.nvim's Introduction

shaunsingh/nord.nvim

Neovim theme based off of the Nord Color Palette.

118406380-d78ad580-b649-11eb-945c-5988fa717f39

Features

Nord.nvim is meant to be a modern colorscheme written in lua for NeoVim that supports a lot of the new features added to NeoVim like built-in LSP and TreeSitter

⚡️ Requirements

  • Neovim >= 0.5.0

🌙 Installation

Install via your favourite package manager:

" If you are using Vim-Plug
Plug 'shaunsingh/nord.nvim'
-- If you are using Packer
use 'shaunsingh/nord.nvim'

🌓 Usage

Enable the colorscheme:

"Vim-Script:
colorscheme nord
--Lua:
vim.cmd[[colorscheme nord]]

To enable the nord theme for Lualine, simply specify it in your lualine settings:

require('lualine').setup {
  options = {
    -- ... your lualine config
    theme = 'nord'
    -- ... your lualine config
  }
}

⚙️ Configuration

Option Default Description
nord_contrast false Make sidebars and popup menus like nvim-tree and telescope have a different background
nord_borders false Enable the border between verticaly split windows visable
nord_disable_background false Disable the setting of background color so that NeoVim can use your terminal background
nord_cursorline_transparent false Set the cursorline transparent/visible
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
nord_bold true enables/disables bold
-- Example config in lua
vim.g.nord_contrast = true
vim.g.nord_borders = false
vim.g.nord_disable_background = false
vim.g.nord_italic = false
vim.g.nord_uniform_diff_background = true
vim.g.nord_bold = false

-- Load the colorscheme
require('nord').set()
" Example config in Vim-Script
let g:nord_contrast = v:true
let g:nord_borders = v:false
let g:nord_disable_background = v:false
let g:nord_italic = v:false
let g:nord_uniform_diff_background = v:true
let g:nord_bold = v:false

" Load the colorscheme
colorscheme nord

headlines support

To support headlines, you should add these code to your settings:

require("headlines").setup({
    markdown = {
        headline_highlights = {
            "Headline1",
            "Headline2",
            "Headline3",
            "Headline4",
            "Headline5",
            "Headline6",
        },
        codeblock_highlight = "CodeBlock",
        dash_highlight = "Dash",
        quote_highlight = "Quote",
    },
})

It should look like this

26B3E551-FD57-458C-BE85-C8945BCE37DF

bufferline support

To support BufferLine, you can add these code to your settings:

local highlights = require("nord").bufferline.highlights({
    italic = true,
    bold = true,
})

require("bufferline").setup({
    options = {
        separator_style = "thin",
    },
    highlights = highlights,
})

It should look like this

image

or you want to use slant separator
local highlights = require("nord").bufferline.highlights({
    italic = true,
    bold = true,
    fill = "#181c24"
})

require("bufferline").setup({
    options = {
        separator_style = "slant",
    },
    highlights = highlights,
})

image

The default setting of bufferline highlights is

{
    fill = colors.nord0_gui,
    indicator = colors.nord9_gui,
    bg = colors.nord0_gui,
    buffer_bg = colors.nord0_gui,
    buffer_bg_selected = colors.nord1_gui,
    buffer_bg_visible = "#2A2F3A",
    bold = true,
    italic = true,
}

nord.nvim's People

Contributors

alaz-oz avatar antoineco avatar arjuns500 avatar coloradocolby avatar crdueck avatar dakennguyen avatar delafthi avatar echasnovski avatar emilio avatar ergpopler avatar felipesere avatar freddiehaddad avatar gbprod avatar guillaumeallain avatar hierosme avatar isrothy avatar jurica avatar lemesigor avatar mcauley-penney avatar mwcz avatar n3wborn avatar ryantking avatar shaunsingh avatar silverrainz avatar slotos avatar tapayne88 avatar thenerdyhamster avatar wendersonbarros avatar yelite avatar yogaflre 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.