GithubHelp home page GithubHelp logo

nvim-nix's Introduction

Configuration Guide

Welcome to my Neovim setup, powered by NixVim.

Local Setup

To get started with this configuration locally, ensure you have Nix installed. If not, you can find installation instructions here.

Once Nix is ready, you can proceed with the following steps:

# Clone the Repository
git clone https://github.com/gwg313/nvim-nix.git
cd nvim-nix

# Run the Configuration
nix run .

Alternatively, you can use the following command to run the configuration without cloning the repository:

nix run github:gwg313/nvim-nix

Integration with NixOS or Home Manager

If you'd like to integrate this Neovim configuration into your NixOS or Home Manager setup, follow these steps:

# Add This Repository as an Input
{
  inputs = {
    nixvim-flake.url = "github:gwg313/nvim-nix";
  };
}

Now, incorporate the Neovim setup into your personal config. Depending on whether you're using NixOS or Home Manager, use one of the following sections:

For NixOS:

{ inputs, system, ... }:
{
  environment.systemPackages = [ inputs.nixvim-flake.packages.${system}.default ];
}

For Home Manager:

{ inputs, ... }:
{
  home.packages = [ inputs.nixvim-flake.packages.${system}.default ];
}

Installing as an Overlay

For those who prefer to overlay their custom build over the standard Neovim package from nixpkgs, you can use this method. While it may be a bit more intricate, it allows you to install Neovim just as you normally would. This method entails replacing the default Neovim package in nixpkgs with a custom derivation of Neovim.

To implement this approach, you can include the following code in your Nix configuration:

{
  pkgs = import inputs.nixpkgs {
    inherit system;
    overlays = [
      (final: prev: {
        neovim = inputs.nixvim-flake.packages.${system}.default;
      })
    ];
  }
}

By following these steps, you can seamlessly integrate a custom Neovim setup into your existing environment and enjoy a tailored Neovim experience.

After making the necessary changes, update your NixOS or Home Manager configuration to apply the Neovim setup.

๐Ÿš€ Happy coding with Neovim! ๐Ÿš€

nvim-nix's People

Contributors

bwkam avatar gwg313 avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

bwkam

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.