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