tidalcycles

This commit is contained in:
Anish L 2022-04-02 11:54:32 +10:00
parent 4df7f1466c
commit 2366d1cca8

View file

@ -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 <F5> <C-R>=strftime("%Y-%m-%d %H:%M")<CR>
:inoremap <F4> <C-R>=strftime("%H:%M")<CR>
" tidal nvim terminal
" let g:tidal_target = "terminal"
" telescope
" Find files using Telescope command-line sugar.
nnoremap <leader>ff <cmd>Telescope find_files<cr>
@ -224,13 +241,13 @@ in
" undo points
inoremap , ,<c-g>u
inoremap . .<c-g>u
inoremap ! !<c-g>u
inoremap ? ?<c-g>u
inoremap ( (<c-g>u
inoremap ! !<c-g>u
inoremap ) )<c-g>u
inoremap [ [<c-g>u
inoremap ] ]<c-g>u
inoremap { {<c-g>u
inoremap ( (<c-g>u
inoremap } }<c-g>u
" moving text
vnoremap J :m '>+1<CR>gv=gv
@ -297,11 +314,13 @@ in
lua <<EOF
-- lsp config
-- only show errors with virtual text
vim.diagnostic.config = ({
virtual_text = {
severity = { min = vim.diagnostic.severity.ERROR }
}
})
-- vim.lsp.handlers["textDocument/publishDiagnostics"] = vim.lsp.with(
-- vim.lsp.diagnostic.on_publish_diagnostics, {
-- -- Enable virtual text, override spacing to 4
-- virtual_text = {
-- severity_limit = { "Error" }
-- }
-- })
-- autopairs
require('nvim-autopairs').setup{}