neovim: add pygments support

This commit is contained in:
Serĉanto de Scio 2022-03-25 13:11:41 +10:00
parent 8f5b38a22c
commit 5618efb259
Signed by: sercanto
GPG key ID: 7DBA9F5689EFB6AA
2 changed files with 5 additions and 1 deletions

View file

@ -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

View file

@ -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