Skip to content

Neovim

programs.neovim.configure

Generate your init file from your list of plugins and custom commands. Neovim will then be wrapped to load {command}nvim -u /nix/store/«hash»-vimrc

Type: attribute set

Default

{ }

Example

{customRC = '' " here your custom configuration goes! '';packages.myVimPackage = with pkgs.vimPlugins; {# loaded on launchstart = [ fugitive ];# manually loadable by calling:packadd $plugin-nameopt = [ ]; }; }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.defaultEditor

When enabled, installs neovim and configures neovim to be the default editor using the EDITOR environment variable.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.enable

Whether to enable Neovim.

When enabled through this option, Neovim is wrapped to use a configuration managed by this module. The configuration file in the user's home directory at {file}~/.config/nvim/init.vim is no longer loaded by default.

Type: boolean

Default

false

Example

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.package

The neovim-unwrapped package to use. Type: package

Default

pkgs.neovim-unwrapped

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.runtime

Set of files that have to be linked in {file}runtime.

Type: attribute set of (submodule)

Default

{ }

Example

{ "ftplugin/c.vim".text = "setlocal omnifunc=v:lua.vim.lsp.omnifunc"; }

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.runtime.<name>.enable

Whether this runtime directory should be generated. This option allows specific runtime files to be disabled.

Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.runtime.<name>.source

Path of the source file. Type: null or path

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.runtime.<name>.target

Name of symlink. Defaults to the attribute name.

Type: string

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.runtime.<name>.text

Text of the file. Type: null or strings concatenated with "\n"

Default

null

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.viAlias

Symlink {command}vi to {command}nvim binary.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.vimAlias

Symlink {command}vim to {command}nvim binary.

Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.withNodeJs

Enable Node provider. Type: boolean

Default

false

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.withPython3

Enable Python 3 provider. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix

programs.neovim.withRuby

Enable Ruby provider. Type: boolean

Default

true

Declared by: https://github.com/nixos/nixpkgs/blob/master/nixos/modules/programs/neovim.nix