{"id":13409794,"url":"https://github.com/stevanmilic/nvim-lspimport","last_synced_at":"2026-01-03T10:52:31.979Z","repository":{"id":205757766,"uuid":"715009528","full_name":"stevanmilic/nvim-lspimport","owner":"stevanmilic","description":"Automatically resolves imports for undefined terms in neovim.","archived":false,"fork":false,"pushed_at":"2024-07-20T16:45:57.000Z","size":17,"stargazers_count":57,"open_issues_count":3,"forks_count":5,"subscribers_count":4,"default_branch":"main","last_synced_at":"2024-07-31T20:38:27.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","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/stevanmilic.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}},"created_at":"2023-11-06T09:52:32.000Z","updated_at":"2024-07-25T14:17:16.000Z","dependencies_parsed_at":"2023-11-06T11:03:18.353Z","dependency_job_id":"0f703213-9514-4189-bf7e-5b6513ba92ce","html_url":"https://github.com/stevanmilic/nvim-lspimport","commit_stats":null,"previous_names":["stevanmilic/lsp-import","stevanmilic/nvim-lspimport"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevanmilic%2Fnvim-lspimport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevanmilic%2Fnvim-lspimport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevanmilic%2Fnvim-lspimport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/stevanmilic%2Fnvim-lspimport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/stevanmilic","download_url":"https://codeload.github.com/stevanmilic/nvim-lspimport/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221477212,"owners_count":16829001,"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-07-30T20:01:03.399Z","updated_at":"2026-01-03T10:52:31.953Z","avatar_url":"https://github.com/stevanmilic.png","language":"Lua","funding_links":[],"categories":["LSP"],"sub_categories":["(requires Neovim 0.5)"],"readme":"# LSP Import\n\nResolves imports for undefined terms by using LSP completion API. It's primary\nusage is to support automatic imports for `pyright` language server.\n\nhttps://github.com/stevanmilic/nvim-lspimport/assets/6879030/5a7868e8-e09b-41e2-a5ec-bd2eacb9c1e0\n\n## Installation\n\nUsing [lazy.nvim](https://github.com/folke/lazy.nvim):\n\n```lua\n{ \"stevanmilic/nvim-lspimport\" }\n```\n\n## Configuration\n\nMappings are not set by default, hence it's required to set a mapping for resolving import:\n\n```lua\nvim.keymap.set(\"n\", \"\u003cleader\u003ea\", require(\"lspimport\").import, { noremap = true })\n```\n\nOnce mapping is set, jump on the line with an undefined term and execute\nmapping to resolve import.\n\n## Supported language servers\n\n- [pyright](https://github.com/microsoft/pyright) (python)\n\nNOTE: In order for `pyright` to resolve an import, module containing it should\nbe used in the workspace; otherwise import won't be found. Hence the\nauto-import feature works well in modules loaded with pre-loaded imports.\n[Auto-imports are limited to only those symbols and modules that have been\nimported somehwhere else in the\nprogram.](https://github.com/microsoft/pyright/issues/967#issuecomment-679417083)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevanmilic%2Fnvim-lspimport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fstevanmilic%2Fnvim-lspimport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fstevanmilic%2Fnvim-lspimport/lists"}