Created
April 14, 2020 21:43
-
-
Save cideM/e0cbf9222415ae2811b83e8a99d2029c to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# .config/nixpkgs/overlays/neovim.nix | |
self: super: { | |
neovim-unwrapped = (super.neovim-unwrapped.override { lua = self.luajit; }).overrideAttrs(oldAttrs: { | |
cmakeFlags = oldAttrs.cmakeFlags ++ [ "-DMIN_LOG_LEVEL=0" ]; | |
version = "master"; | |
src = builtins.fetchGit { | |
url = https://github.com/neovim/neovim.git; | |
}; | |
nativeBuildInputs = oldAttrs.nativeBuildInputs ++ [ | |
# self.pkgs.valgrind | |
# testing between both | |
self.pkgs.ccls | |
self.pkgs.clang-tools # for clangd | |
]; | |
buildInputs = oldAttrs.buildInputs ++ [ | |
self.pkgs.icu # for treesitter unicode/ptypes.h | |
self.pkgs.utf8proc | |
]; | |
# export NVIM_PROG | |
# https://github.com/neovim/neovim/blob/master/test/README.md#configuration | |
shellHook = oldAttrs.shellHook + '' | |
export NVIM_PYTHON_LOG_LEVEL=DEBUG | |
export NVIM_LOG_FILE=/tmp/log | |
# export NVIM_PYTHON_LOG_FILE=/tmp/log | |
export VALGRIND_LOG="$PWD/valgrind.log" | |
export NVIM_TEST_PRINT_I=1 | |
export NVIM_TEST_MAIN_CDEFS=1 | |
echo "To run tests:" | |
echo "VALGRIND=1 TEST_FILE=test/functional/core/job_spec.lua TEST_TAG=env make functionaltest" | |
''; | |
}); | |
neovim = super.neovim.override { | |
vimAlias = true; | |
withPython = true; | |
configure = { | |
packages.myVimPackage = with super.vimPlugins; { | |
start = [ | |
"rust-lang/rust.vim" | |
"romainl/Apprentice" | |
"NLKNguyen/papercolor-theme" | |
"junegunn/seoul256.vim" | |
vim-signify | |
vim-fugitive | |
ultisnips | |
"lifepillar/vim-mucomplete" | |
]; | |
opt = []; | |
}; | |
customRC = '' | |
colorscheme PaperColor | |
''; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment