GithubHelp home page GithubHelp logo

benson9954029 / night-owl.nvim Goto Github PK

View Code? Open in Web Editor NEW

This project forked from oxfist/night-owl.nvim

0.0 0.0 0.0 6.25 MB

πŸ¦‰ 🌌 night-owl.nvim is a Night Owl colorscheme implementation for Neovim with support for Tree-sitter and semantic tokens

License: BSD 3-Clause "New" or "Revised" License

Scheme 23.71% Lua 76.29%

night-owl.nvim's Introduction

πŸ¦‰ night-owl.nvim 🌌

All Contributors
Illustration of an owl

The best implementation of Sarah Drasner's Night Owl VSCode theme for Neovim with Treesitter support.

Syntax highlight demo image

πŸ“¦ Install In Zero Time

packer.nvim

use("oxfist/night-owl.nvim")

lazy.nvim

require("lazy").setup({
  "oxfist/night-owl.nvim"
  lazy = false, -- make sure we load this during startup if it is your main colorscheme
  priority = 1000, -- make sure to load this before all the other start plugins
  config = function()
    -- load the colorscheme here
    vim.cmd.colorscheme("night-owl")
  end,
})

vim-plug

Plug 'oxfist/night-owl.nvim'

πŸš€ Start Using With A Single Line

Note

You can skip this step if you followed the lazy.nvim setup, since that already sets the colorscheme.

Add the following line to your Lua configuration files, e.g. ~/.config/nvim/init.lua (your actual path might be different):

vim.cmd.colorscheme("night-owl")

To enable night-owl for Lualine, simply set the theme like this in your settings πŸ‘‡:

-- This Lualine config should be somewhere in your config files
require('lualine').setup {
  options = {
    -- ... other configs
    theme = 'night-owl'
    -- ... other configs
  }
}

πŸ–₯️ Requirements

TODO

πŸ”Ž Comparison

How does this port compare to the original VSCode theme? Check it out!

Original Night Owl for VSCode This Theme 🀩
Screenshot of VSCode theme Screenshot of this theme

✨ Why Should You Pick This Version of Night Owl?

This implementation of Night Owl solves several syntax highlight issues and discrepancies similar ports have when comparing to the original VSCode theme.

The following features allow making the programming experience as close to the original VSCode theme as possible:

  1. Extended highlight groups: through additional Treesitter queries. See after/queries for implementation details.
  2. Different background color when Neovim is inactive: through autocommands. See after/plugin/autocmds.lua for implementation details.
πŸ‘‡ Click to see comparison with haishanh/night-owl.vim

With Treesitter installed you can see the overall look and feel is significantly different:

  • Different colors for several keywords like let, const, async, function, etc. Same happens for class names EditFishForm and Sale.
  • Italics not applied anywhere except for comments.
  • Italics incorrectly applied to JSDoc keywords @param and @returns.
haishanh/night-owl.vim This Theme
Screenshot of haishanh theme Screenshot of this theme

Language Support 🌐

JavaScript Typescript JSON Markdown Lua

Note

I've personally optimized the colorscheme styling and robustness for these languages extensively enough to confidently say they look acceptable to me. If you happen to build software with them, then I invite you to try out this theme! πŸ™‚

Coming Soon: Lua βœ…, Vimscript (in progress), TSX, R, Rust, Python, Ruby, Bash, and many more!

🧩 Plugins Supported

πŸŽ‡ Credits

  • Sarah Drasner first and foremost, for creating such a beautiful and artistic color scheme that has made, for me personally, so much more pleasurable the exhilirating act of building software.
  • https://www.monolisa.dev/ for one of the sweetest programming fonts out there.

Code of Conduct

License

Contributors


AndrΓ©s QuilodrΓ‘n

Dominik Garcia

Rish

Michael Lazarski

Denis Washington

kmlopez-hhl

night-owl.nvim's People

Contributors

allcontributors[bot] avatar dmnkgrc avatar oxfist 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.