From 5618efb259d9dbe13db45e42e074a39e252264b2 Mon Sep 17 00:00:00 2001 From: Craige McWhirter Date: Fri, 25 Mar 2022 13:11:41 +1000 Subject: [PATCH] neovim: add pygments support --- hosts/dionach.nix | 1 - profiles/neovim.nix | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/hosts/dionach.nix b/hosts/dionach.nix index de8b457..6fc7feb 100644 --- a/hosts/dionach.nix +++ b/hosts/dionach.nix @@ -118,7 +118,6 @@ pcmanfm pstree # Show the set of running processes as a tree pwgen - python39Packages.pygments python3Full python39Packages.restview # ReStructuredText viewer python39Packages.sphinx # A tool that makes it easy to create intelligent and beautifulul documentation for Python projects diff --git a/profiles/neovim.nix b/profiles/neovim.nix index 31b5d79..de3486e 100644 --- a/profiles/neovim.nix +++ b/profiles/neovim.nix @@ -2,6 +2,10 @@ environment.variables = {EDITOR = "vim";}; environment.systemPackages = with pkgs; [ + # Add python packages required by NeoVim in NixOS + (python3.withPackages (ps: [ + ps.pygments + ])) (neovim.override { vimAlias = true; configure = { @@ -32,6 +36,7 @@ ]; opt = []; }; + # Write a custom Neovim config for NixOS customRC = '' " Preferred global default settings: set nocompatible