From 2366d1cca8e71afebacf7978df33b62dcf5f6513 Mon Sep 17 00:00:00 2001 From: Anish L Date: Sat, 2 Apr 2022 11:54:32 +1000 Subject: [PATCH] tidalcycles --- profiles/nvim/nvim.nix | 33 ++++++++++++++++++++++++++------- 1 file changed, 26 insertions(+), 7 deletions(-) diff --git a/profiles/nvim/nvim.nix b/profiles/nvim/nvim.nix index dc070e7b..8f7c12ca 100644 --- a/profiles/nvim/nvim.nix +++ b/profiles/nvim/nvim.nix @@ -19,6 +19,20 @@ let sha256 = "rs3NTZwWdsmBGXnrgUeVxUiNjbN/ULxJHifPYJD9mT4="; }; }; + vim-tidal = pkgs.vimUtils.buildVimPluginFrom2Nix { + name = "vim-tidal"; + src = pkgs.fetchgit { + url = "https://github.com/tidalcycles/vim-tidal"; + # version 1.4.6 + rev = "52134979252757a5736ae09cb9fc6ae3cc04daef"; + sha256 = "1x64d8jdlcw16pcp19xb0krd1jfqhva4xsxif8xc11pyj52sxxlh"; + }; + postInstall = '' + sed -i "s| split term://tidal| split term://$out/share/vim-plugins/vim-tidal/bin/tidal|g" $out/share/vim-plugins/vim-tidal/plugin/tidal.vim + cat plugin/tidal.vim | grep "term:" + ''; + dependencies = [ ]; + }; }; my-python-packages = python-packages: with python-packages; [ @@ -193,6 +207,9 @@ in :inoremap =strftime("%Y-%m-%d %H:%M") :inoremap =strftime("%H:%M") + " tidal nvim terminal + " let g:tidal_target = "terminal" + " telescope " Find files using Telescope command-line sugar. nnoremap ff Telescope find_files @@ -224,13 +241,13 @@ in " undo points inoremap , ,u inoremap . .u - inoremap ! !u inoremap ? ?u - inoremap ( (u + inoremap ! !u inoremap ) )u inoremap [ [u inoremap ] ]u inoremap { {u + inoremap ( (u inoremap } }u " moving text vnoremap J :m '>+1gv=gv @@ -297,11 +314,13 @@ in lua <