1
0
Fork 0

Latest neovim

This commit is contained in:
Malte Brandy 2019-09-15 02:20:00 +02:00
parent 92a6eb0e26
commit 5207b4ac31
No known key found for this signature in database
GPG key ID: 226A2D41EF5378C9
4 changed files with 58 additions and 2 deletions

View file

@ -16,15 +16,43 @@ in rec {
pkgs.callPackage ./powerlevel10k/zsh-powerlevel10k.nix { };
ghcide = (import sources.ghcide { }).ghcide-ghc865;
tasktree = pkgs.callPackage ./tasktree { };
neovim = unstable.neovim.override {
libluv = unstable.callPackage ./libluv { };
libvterm-neovim = unstable.libvterm-neovim.overrideAttrs (attrs: {
version = "2019-08-28";
src = pkgs.fetchFromGitHub {
owner = "neovim";
repo = "libvterm";
rev = "1aa95e24d8f07a396aa80b7cd52f93e2b5bcca79";
sha256 = "0vjd397lqrfv4kc79i5izva4bynbymx3gllkg281fnk0b15vxfif";
};
});
neovim-unwrapped = unstable.neovim-unwrapped.overrideAttrs (attrs: {
version = "nightly-2019-0914";
src = pkgs.fetchFromGitHub {
owner = "neovim";
repo = "neovim";
rev = "8c88d98";
sha256 = "11n0yzk55x9w3hldq7mp07q2fa94ksc20qmh3llq8mj976675i48";
};
buildInputs = [ libvterm-neovim ] ++ attrs.buildInputs ++ [ libluv ];
});
neovim = (unstable.wrapNeovim neovim-unwrapped { }).override {
vimAlias = true;
withPython3 = true;
};
lorri = import sources.lorri {
src = sources.lorri;
pkgs = unstable;
};
home-neovim = (import ./nvim) neovim;
niv = (import sources.niv { }).niv;
# pkgs assumed to be present on a non nixos host

27
pkgs/libluv/default.nix Normal file
View file

@ -0,0 +1,27 @@
{ stdenv, lib, fetchFromGitHub, cmake, libuv, luajit, pkgconfig }:
stdenv.mkDerivation rec {
version = "1.30.1-0";
pname = "libluv";
src = fetchFromGitHub {
owner = "luvit";
repo = "luv";
rev = "${version}";
sha256 = "0j0apc19yn9jgy2iw2z3za9311pk8g72c72rj6xg3a3q1r93rkiy";
fetchSubmodules = true;
};
cmakeFlags = [
"-DLUA=Off"
"-DBUILD_MODULE=Off"
"-DWITH_SHARED_LIBUV=On"
"-DLUA_BUILD_TYPE=System"
];
nativeBuildInputs = [ cmake pkgconfig libuv luajit ];
enableParallelBuilding = true;
doCheck = true;
}

View file

@ -9,7 +9,7 @@ n.override {
inherit ((import <nixpkgs> { }).vimPlugins)
vim-nix vimtex airline rust-vim fugitive vim-trailing-whitespace
vim-airline-themes vim-pandoc vim-pandoc-syntax haskell-vim
vim-autoformat vim-ledger;
vim-autoformat vim-ledger papercolor-theme;
inherit ((import <unstable> { }).vimPlugins)
coc-nvim coc-python coc-rls coc-yaml coc-vimtex coc-css coc-json
coc-html coc-git;

View file

@ -53,6 +53,7 @@ let g:formatters_nix = ['my_nix']
au BufWrite * :Autoformat
let g:autoformat_autoindent = 0
let g:autoformat_retab = 0
colorscheme PaperColor
" if hidden is not set, TextEdit might fail.
set hidden