Skip to content

Contains a branch for a build in both lua and nix.

License

Notifications You must be signed in to change notification settings

octocron/megavim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

👊 Thank You!!

🌆 Preview



📖 Resources

RTFM
NüschtOS
NVIM Options

🔌 Features

Codium: with ability to connect project context to your account.
Hardtime: For forcing you to learn vim, and get hint of better ways.
Precognition: For vim suggestions.
Glow: To toggle markdown preview.
LazyGit: For easy git management.
Linting, formatting, syntax highlighting, etc...for most languages.
Keep context for deeply nested code.

A Nix version of Neovim.
Nixvim input is locked to prevent breaking changes.

🕹️ Commands

These commands are also used with spacebar menu list.
Just to list to make you aware of them.

:h holy-grail                   # see everything vim can do
:Telescope keymaps              # search set keymaps

🔩 How to Run

You can run this directly from the command line with:

nix run gitlab:megacron/megavim

💾 Direct Install

You can also plug this into a flake to include it into a system configuration.
Make sure that neovim is UNINSTALLED!! Otherwise megavim cannot set itself as default!

# flake.nix need commitHash in order to guarantee proper build so be sure to paste in latest commit
{
  inputs = {
    # without commitHashLatest megavim would build from flake source instead of its own
    megavim.url = "gitlab:megacron/megavim?rev=commitHashLatest";
  };
}
# configuration.nix
{ inputs, system, ... }:
{
  # NixOS
  environment.systemPackages = [ inputs.megavim.packages.${pkgs.system}.default ];
  # home-manager
  home.packages = [ inputs.megavim.packages.${pkgs.system}.default ];
}

📌 Overlay

This input can then be used as an overlay to replace the default neovim.
This means that we DO install neovim, then overlay it.

{ megavim, ... }:
{
    overlays = (final: prev: {
      neovim = megavim.packages.${prev.system}.default;
    });
}

🔮 In devShell

 devShells.default = nixpkgs.mkShell {
        nativeBuildInputs = [ megavim.packages.${pkgs.system}.default ];
      };
    };

You can find more information on building your own flake
here.

About

Contains a branch for a build in both lua and nix.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages