{"id":13646390,"url":"https://github.com/tigersoldier/lsp-javacomp","last_synced_at":"2025-04-21T18:30:57.019Z","repository":{"id":25669115,"uuid":"105626193","full_name":"tigersoldier/lsp-javacomp","owner":"tigersoldier","description":"Emacs Language Server client backed by JavaComp","archived":false,"fork":false,"pushed_at":"2022-04-11T05:22:36.000Z","size":28,"stargazers_count":26,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-03T07:21:56.454Z","etag":null,"topics":["emacs","java","language-server-protocol"],"latest_commit_sha":null,"homepage":null,"language":"Emacs Lisp","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tigersoldier.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}},"created_at":"2017-10-03T07:42:34.000Z","updated_at":"2025-02-04T16:26:44.000Z","dependencies_parsed_at":"2022-08-09T01:00:04.121Z","dependency_job_id":null,"html_url":"https://github.com/tigersoldier/lsp-javacomp","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/tigersoldier%2Flsp-javacomp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tigersoldier%2Flsp-javacomp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tigersoldier%2Flsp-javacomp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tigersoldier%2Flsp-javacomp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tigersoldier","download_url":"https://codeload.github.com/tigersoldier/lsp-javacomp/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250110822,"owners_count":21376542,"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":["emacs","java","language-server-protocol"],"created_at":"2024-08-02T01:02:54.380Z","updated_at":"2025-04-21T18:30:56.754Z","avatar_url":"https://github.com/tigersoldier.png","language":"Emacs Lisp","funding_links":[],"categories":["Emacs Lisp"],"sub_categories":[],"readme":"[![MELPA](https://melpa.org/packages/lsp-javacomp-badge.svg)](https://melpa.org/#/lsp-javacomp)\n\n# Emacs Language Server client backed by [JavaComp][javacomp]\n\nlsp-javacomp is a [lsp-mode][lsp-mode] client that provides Java code-completion\nand other IDE features for Emacs. It's backed by [JavaComp][javacomp].\n\n## Usage\n\n### Enable lsp-javacomp\n\nlsp-javacomp is available on [MELPA]. To install it, first [setup\nMELPA][setup-melpa], then \u003ckbd\u003eM-x\u003c/kbd\u003e `package-install` \u003ckbd\u003eRET\u003c/kbd\u003e\n`lsp-javacomp` \u003ckbd\u003eRET\u003c/kbd\u003e.\n\nAfter installing it, add the snippet below to your `.emacs` file to enable it\nfor `java-mode`:\n\n```elisp\n(require 'lsp-javacomp)\n(add-hook 'java-mode-hook #'lsp-javacomp-enable)\n```\n\nI recommend using lsp-javacomp in with [company-lsp][compan-lsp]. If you are\nlazy-loading company-lsp, make sure it's loaded before calling\n`lsp-javacomp-enable`. You can lazily load lsp-javacomp and company-lsp with\n[use-package][use-package]:\n\n```elisp\n(use-package lsp-javacomp\n  :init\n  (add-hook 'java-mode-hook\n            (lambda ()\n              ;; Load lsp-javacomp before enabling lsp, so that javacomp client\n              ;; is registed.\n              (require 'lsp-javacomp')\n              (lsp)\n              ;; Use company-lsp as the company completion backend\n              (set (make-variable-buffer-local 'company-backends) '(company-lsp))\n              ;; Optional company-mode settings\n              (set (make-variable-buffer-local 'company-idle-delay) 0.1)\n              (set (make-variable-buffer-local 'company-minimum-prefix-length) 1)))\n  ;; Optional, make sure JavaComp is installed. See below.\n  :config\n  (lsp-javacomp-install-server))\n```\n\n### Install/Update JavaComp server\n\nAfter installing lsp-javacomp to your Emacs, you can use `M-x\nlsp-javacomp-install-server` to install the JavaComp server.\n\nIf you want to update to the latest version of JavaComp, you can use `M-x\nlsp-javacomp-update-server`.\n\nAlternatively, you can build or download the jar file manually. You must rename\nthe jar file to `javacomp.jar` and put it into the directory specified by the\n`lsp-javacomp-server-install-dir` variable. The default value of\n`lsp-javacomp-server-install-dir` is `~/.emacs.d/javacomp/`.\n\n### Complete using `completion-at-point`\n\nIf you don't use company-lsp, you can use the vanilla `completion-at-point`\nimplemented by lsp-mode.\n\nRun `M-x completion-at-point` in a .java file buffer to get completion\ncandidates. The default key binding is `C-M-i`.\n\n### Customizing JavaComp server behavior\n\nYou can provide initialization options to JavaComp by setting the following\nvariables:\n\n* `lsp-javacomp-server-log-path`\n* `lsp-javacomp-server-log-level`\n* `lsp-javacomp-server-ignore-paths`\n* `lsp-javacomp-server-type-index-files`\n\nIf there is `javacomp.json` file in the project root, the corresponding options\nwill be overridden if specified in the `javacomp.json` file.\n\n[company-lsp]: http://https://github.com/tigersoldier/company-lsp/\n[javacomp]: https://github.com/tigersoldier/JavaComp\n[lsp-mode]: https://github.com/emacs-lsp/lsp-mode\n[melpa]: https://melpa.org\n[setup-melpa]: https://melpa.org/#/getting-started\n[use-package]: https://github.com/jwiegley/use-package\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftigersoldier%2Flsp-javacomp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftigersoldier%2Flsp-javacomp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftigersoldier%2Flsp-javacomp/lists"}