{"id":19784127,"url":"https://github.com/abstract-ide/lazy-builder","last_synced_at":"2025-04-30T22:32:01.110Z","repository":{"id":112771782,"uuid":"310584125","full_name":"Abstract-IDE/lazy-builder","owner":"Abstract-IDE","description":"python script for running or compiling program (of programming language) in vim/neo-vim","archived":false,"fork":false,"pushed_at":"2021-12-21T04:42:35.000Z","size":300,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"LazyBuild-floaterm","last_synced_at":"2025-04-06T05:41:57.921Z","etag":null,"topics":["build","lazy-builder","neovim","run","vim"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Abstract-IDE.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-06T11:53:27.000Z","updated_at":"2024-07-01T06:09:47.000Z","dependencies_parsed_at":null,"dependency_job_id":"ddec928d-8ab8-44c6-b8e9-56fe52b2a771","html_url":"https://github.com/Abstract-IDE/lazy-builder","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abstract-IDE%2Flazy-builder","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abstract-IDE%2Flazy-builder/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abstract-IDE%2Flazy-builder/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Abstract-IDE%2Flazy-builder/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Abstract-IDE","download_url":"https://codeload.github.com/Abstract-IDE/lazy-builder/tar.gz/refs/heads/LazyBuild-floaterm","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251791723,"owners_count":21644447,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["build","lazy-builder","neovim","run","vim"],"created_at":"2024-11-12T06:10:30.059Z","updated_at":"2025-04-30T22:32:01.103Z","avatar_url":"https://github.com/Abstract-IDE.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LAZY-BUILDER\n\nLazy-Builder is a python script for buinding or running any programming language('s file) in vim by mapping lazy-builder script in vimrc(for vim), init.vim(for neo-vim) file.\n\n### logic\nlogic of lazy-build is simple. it just analyse the extension of file which you want to build/run.If programming language is Interpreted, it ran the file as interpreted language OR if programming language is Compiled, it ran the/build file as compliled language\n \n## Uses\n\n\n```\nusage: python build.py [-h] [-r] [-b] [-br] [-o] program_name\n\npositional arguments:\n  program_name  File/Program that you want to RUN/BUILD (eg. hello.c, calculate.py, auto.sh)\n\noptional arguments:\n  -h, --help    show this help message and exit\n  -r    0 or 1, 1 means RUN and 0(default) means don't RUN the program\n  -b    0 or 1, 1 means BUILD and 0(default) means don't BUILD the program\n  -br   0 or 1, 1 means BUILD and RUN and 0 means don't BUILD and RUN the program\n  -o    location for output of compiled language (eg. /home/user/folder1/)\n\n```\n\n## Using with vim/neo-vim\nyou can use lazy-build with vim by mapping as shown in below example:\n\n[ NOTE: first install  [vim-floaterm](https://github.com/voldikss/vim-floaterm) plugin\n                    OR\nif you don't want to install vim-floaterm plugin, go with [this](https://github.com/shaeinst/lazy-builder/tree/main) branch and follow [this](https://github.com/shaeinst/lazy-builder/tree/main#using-with-vimneo-vim) example of mapping (which use builtin split option)\n] \n```\n\" Run program file when leader+r is pressed\nnnoremap \u003cLeader\u003er :w \u003cCR\u003e\u003cbar\u003e :FloatermNew\n    \\ python /home/user/folder/lazy-builder/build.py -o /home/user/.cache/build_files/ -r 1 % \u003cCR\u003e\u003cCR\u003e\n\n\" build the program file when leader+b is pressed\nnnoremap \u003cLeader\u003eb :w \u003cCR\u003e\u003cbar\u003e :FloatermNew\n    \\ time\n    \\ python /home/user/folder/lazy-builder/build.py -o /home/user/.cache/build_files/ -b 1 % \u003cCR\u003e\u003cCR\u003e\n    \n\" build and then run the program when leader+o is pressed\nnnoremap \u003cLeader\u003eo :w \u003cCR\u003e\u003cbar\u003e :FloatermNew\n    \\ time\n    \\ python /home/user/folder/lazy-builder/build.py -o /home/user/.cache/build_files/ -br 1 % \u003cCR\u003e\u003cCR\u003e\n```\nreplace the following location to the location where you downloaded/cloned lazy-builder repositories\n```\n/home/user/folder/lazy-builder/build.py\n```\nreplace this location to your desired location where you want to put the output/build/compiled files. \n```\n/home/user/.cache/build_files/\n```\nor if you want the compiled file to stay in it's parent directory(from where it's compiled) then remove \"-o /home/user/.cache/build_files/\" from binding\n\n\n\n# currently supported languages\n```\n[ Compiled Languages ]\nc/c++\nD\ngo\nqbasic\nrust\nV\n\n[ Interpreted Languages ]\nbash\njavascript\njulia\nperl\npython\nR\nsql\nzsh\n\n[ more comming soon...]\n```\n# to-do\nadd more language support\n\n## Screenshots\n### running python program\n![running python file using lazy-builder script](https://github.com/shaeinst/media/raw/main/images/github-repositories/lazy-builder/running_python_program.png)\n\n### compiling c++ program\n![running python file using lazy-builder script](https://github.com/shaeinst/media/raw/main/images/github-repositories/lazy-builder/comiling.png)\n\n### running c++ program\n![running python file using lazy-builder script](https://github.com/shaeinst/media/raw/main/images/github-repositories/lazy-builder/running_c%2B%2B_program.png)\n\n### compiling and then running c++ program\n![running python file using lazy-builder script](https://github.com/shaeinst/media/raw/main/images/github-repositories/lazy-builder/compile_and_running.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabstract-ide%2Flazy-builder","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabstract-ide%2Flazy-builder","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabstract-ide%2Flazy-builder/lists"}