Note
This project has given up on github and is now hosted on Codeberg.
nix run github:PierreBorine/nixvim-configImport this flake into your's
# flake.nix
{
inputs = {
nixvim-config.url = "github:PierreBorine/nixvim-config";
# Recommended
nixvim-config.inputs.nixpkgs.follows = "nixpkgs";
};
}Access the package like this
# configuration.nix
{inputs, pkgs, lib, ...}: {
# With default settings
environment.systemPackages = [inputs.nixvim-config.packages.${pkgs.stdenv.hostPlatform.system}.default];
# Recommended:
# With some settings
environment.systemPackages = let
nvim = inputs.nixvim-config.lib.mkNvim {
inherit (pkgs.stdenv.hostPlatform) system; # mandatory
# Used to get the flake's options (inputs.self) for the Nix LSP
# default: null
inherit inputs;
# Whether to install and enable wakatime
# default: false
wakatime = true;
# Whether to enable 42 School related options
# Stdheader, norm formatter
# default: null
life = 42;
# Whether to have transparent background by default.
# Can be toggled with <leader>ut
# default: false
transparent = false;
# Which languages to support.
# either "All" or a list, available options:
# ["Nix" "C" "Rust" "QML" "Python" "CS" "Web" "Markdown"]
# default: []
languages = "All";
# Whether to disable some dependencies.
# Usefull to reduce closure size.
# default = false
portable = true;
# Extra Nixvim config.
# See official documentation.
config = {
plugins = {
smear-cursor.enable = true;
hardtime.settings.enabled = true;
};
opts.wrap = lib.mkForce false;
};
};
in [nvim];
}