{"id":18556768,"url":"https://github.com/urbit/hoon-language-server","last_synced_at":"2025-04-10T01:31:35.099Z","repository":{"id":35808898,"uuid":"219434178","full_name":"urbit/hoon-language-server","owner":"urbit","description":"Language Server for Hoon.  Middleware to translate between the Language Server Protocol and your Urbit.","archived":false,"fork":false,"pushed_at":"2023-03-19T20:37:22.000Z","size":103,"stargazers_count":38,"open_issues_count":9,"forks_count":10,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-03-24T14:21:24.721Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Nix","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/urbit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2019-11-04T06:40:07.000Z","updated_at":"2025-03-11T17:50:22.000Z","dependencies_parsed_at":"2024-11-06T21:36:27.005Z","dependency_job_id":"1dfe8607-42ef-4c8d-8842-8bcb0edf07a4","html_url":"https://github.com/urbit/hoon-language-server","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/urbit%2Fhoon-language-server","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Fhoon-language-server/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Fhoon-language-server/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/urbit%2Fhoon-language-server/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/urbit","download_url":"https://codeload.github.com/urbit/hoon-language-server/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248140383,"owners_count":21054290,"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":[],"created_at":"2024-11-06T21:33:13.636Z","updated_at":"2025-04-10T01:31:30.080Z","avatar_url":"https://github.com/urbit.png","language":"Nix","funding_links":[],"categories":[],"sub_categories":[],"readme":"# hoon-language-server\n\nEarth-side component of a language server for Hoon. Enables two-way communication between supported text editors and the `language-server` agent on an urbit ship.\n## Installation\n### npm\n```bash\nnpm install -g @urbit/hoon-language-server\n```\n### nix\n```bash\nnix-build -E 'with import \u003cnixpkgs\u003e {}; callPackage ./default.nix {}'\nnix-env -i ./result\n```\n\n## Running\n\u003e **_NOTE:_**  Usually your editor will handle this, you just need to set the correct parameters in your editor configuration.\n\u003e \n`hoon-language-server -p 80 -d 0 -u http://localhost -s zod -c lidlut-tabwed-pillex-ridrup`\n\n### Configuration\n- `-p`: HTTP port of your (running) ship\n- `-d`: `didSave` event delay\n- `-u`: ship url\n- `-s`: `@p` of ship (without a sig)\n- `-c`: `+code` of ship (without a sig)\n\n## Urbit Setup\n\nYou must have an urbit ship running (can be a livenet ship) with the `language-server` agent started.  To create and start a fake `~zod`:\n\n```\nurbit -F zod -c zod\n```\n\nIn the urbit dojo, start the language server:\n\n```\ndojo\u003e |start %language-server\n```\n\nget the `+code`\n\n```\ndojo\u003e +code\n```\n\nTo start the same ship again in the future just run:\n\n```\nurbit zod\n```\n\nin the same directory it was created in.\n\n## Editor Setup\n\nYour code editor now needs to use `hoon-language-server` as an LSP provider. Supported plugins:\n### VSCode\n\n * [hoon-vscode](https://github.com/famousj/hoon-vscode)\n * [hoon-assist-vscode](https://github.com/urbit/hoon-assist-vscode)\n\n### Emacs\n\n * [hoon-mode.el](https://github.com/urbit/hoon-mode.el)\n\n### Vim\n\n * [hoon.vim](https://github.com/urbit/hoon.vim)\n\n`hoon.vim` does not use the language server itself, but the github page describes a setup using [vim-lsp](https://github.com/prabirshrestha/vim-lsp).\n\n### Neovim\n\nNeovim users should use [hoon.vim](https://github.com/urbit/hoon.vim) with one of the following LSP setups:\n\n#### Native LSP\n\nInstall [nvim-lspconfig](https://github.com/neovim/nvim-lspconfig).  To use the [default configuration](https://github.com/neovim/nvim-lspconfig/blob/master/doc/server_configurations.txt#hoon_ls), add the following to `init.lua`:\n\n```\nrequire'lspconfig'.hoon_ls.setup{}\n```\n\nTo modify the default options use:\n\n```\nrequire'lspconfig'.hoon_ls.setup{\n  cmd = {\"hoon-language-server\", \"-p\", \"8080\"}\n}\n```\n\nYou can include lua snippets in your `init.vim` like so:\n\n```\nlua \u003c\u003c EOF\nrequire'lspconfig'.hoon_ls.setup{}\nEOF\n```\n\n#### coc.nvim\n\nInstall and configure [coc.nvim](https://github.com/neoclide/coc.nvim), then add a `languageserver` entry to `~/.config/nvim/coc-settings.json`:\n\n```\n{\n  \"languageserver\": {\n    \"hoon-language-server\": {\n      \"command\": \"hoon-language-server\",\n      \"args\": [\"-p\", \"8080\"],\n      \"filetypes\": [\"hoon\"]\n    }\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbit%2Fhoon-language-server","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Furbit%2Fhoon-language-server","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Furbit%2Fhoon-language-server/lists"}