Coder Social home page Coder Social logo

sfsam / neovim-mac Goto Github PK

View Code? Open in Web Editor NEW

This project forked from jaysandhu/neovim-mac

3.0 1.0 0.0 2.89 MB

A fast Neovim GUI for macOS.

License: MIT License

Shell 0.66% C++ 43.49% C 1.36% Objective-C 5.52% Objective-C++ 46.20% Metal 2.03% Rich Text Format 0.14% Vim Script 0.43% Lua 0.16%

neovim-mac's Introduction

This branch:
- No externalized tabline
- Subjective UI and aesthetic tweaks
- Questionable bug fixes
- Command-line helper 'nvmm' inside Neovim.app/Contents/Helpers
  (akin to MacVim's 'mvim' helper)

Neovim for macOS

A fast, minimal, Neovim GUI for macOS.

Features

  • Fast Metal based renderer.
  • Native clipboard support.
  • Native macOS keyboard shortcuts and behavior.

Screenshots

screenshot 1 screenshot 2

Color Scheme Support

Neovim for macOS comes with a light and dark theme. By default, a theme will be chosen in accordance to your system appearance settings. The colors of GUI elements can be further customized via the neovim_mac#Colorscheme() function. The function accepts a dictionary with the following key / value pairs:

Key Value
appearance "light" or "dark", sets default theme and sets window title color
titlebar Window title bar color
tab_background Unselected tabs background color
tab_selected Selected tab background color
tab_hover Tab background color on mouse over
tab_title Tab title color
tab_separator Tab separator color
tab_button Tab button foreground color (close tab, add tab buttons)
tab_button_hover Tab button background color on mouse over
tab_button_highlight Tab button background color on mouse click

Colors should be in the format #rrggbb. Where xx is a hexadecimal number between 00 and ff. Alpha values are not supported. The # sign is required.

Example

To set the selected tab color to red:

:call neovim_mac#Colorscheme({"tab_selected" : "#ff0000"})

Building from Source

  1. Clone the repository and change working directories.
git clone https://github.com/JaySandhu/neovim-mac.git
cd neovim-mac
  1. Build or download Neovim.

To build Neovim from source, ensure you have the required build dependencies, then run the build script:

./build_nvim.sh {release_tag}

Alternatively, you can download a pre-built Neovim release:

./download_nvim.sh {release_tag}

Both the build script and the download script accept an optional release tag argument (e.g. v0.8.0, nightly, stable). If no release is specified, the scripts default to stable. Neovim versions v0.8.0 and newer supported.

  1. Build the app.
xcodebuild -configuration Release

If everything went as planned, you'll find Neovim.app in build/release.

Credits

License

License

neovim-mac's People

Contributors

adamtheturtle avatar jaysandhu avatar notbaab avatar sfsam avatar

Stargazers

 avatar  avatar  avatar

Watchers

 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.