diff --git a/home/rachel.nix b/home/rachel.nix index 2026ef5..5efe4df 100644 --- a/home/rachel.nix +++ b/home/rachel.nix @@ -193,6 +193,24 @@ in let g:lightline = { 'colorscheme': 'gruvbox' } colorscheme gruvbox hi Normal guibg=NONE ctermbg=NONE + + au BufRead,BufNewFile *.agda call AgdaFiletype() + au BufRead,BufNewFile *.lagda.* call AgdaFiletype() + function! AgdaFiletype() + nnoremap l :CornelisLoad + nnoremap r :CornelisRefine + nnoremap c :CornelisMakeCase + nnoremap , :CornelisTypeContext + nnoremap . :CornelisTypeContextInfer + nnoremap d :CornelisTypeInfer + nnoremap s :CornelisSolve + nnoremap a :CornelisAuto + nnoremap gd :CornelisGoToDefinition + nnoremap b :CornelisPrevGoal + nnoremap f :CornelisNextGoal + nnoremap u :CornelisIgnoreAbstract + nnoremap :CornelisGive + endfunction ''; plugins = with pkgs.vimPlugins; [ surround-nvim