{"id":29064524,"url":"https://github.com/ducks/nvim-vandelay","last_synced_at":"2025-06-27T09:07:36.810Z","repository":{"id":300995479,"uuid":"1007821845","full_name":"ducks/nvim-vandelay","owner":"ducks","description":"What does Art Vandelay import?","archived":false,"fork":false,"pushed_at":"2025-06-24T16:14:23.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-06-24T16:47:40.714Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Lua","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/ducks.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,"zenodo":null}},"created_at":"2025-06-24T15:24:30.000Z","updated_at":"2025-06-24T16:14:26.000Z","dependencies_parsed_at":"2025-06-24T16:57:47.345Z","dependency_job_id":null,"html_url":"https://github.com/ducks/nvim-vandelay","commit_stats":null,"previous_names":["ducks/nvim-vandelay"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/ducks/nvim-vandelay","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks%2Fnvim-vandelay","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks%2Fnvim-vandelay/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks%2Fnvim-vandelay/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks%2Fnvim-vandelay/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ducks","download_url":"https://codeload.github.com/ducks/nvim-vandelay/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ducks%2Fnvim-vandelay/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262227890,"owners_count":23278266,"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":"2025-06-27T09:07:18.184Z","updated_at":"2025-06-27T09:07:36.787Z","avatar_url":"https://github.com/ducks.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# nvim-vandelay\n\n\u003e \"What does Art Vandelay import?\"\n\nA Neovim plugin to automatically expand multiline imports.\n\n## Features\n\n- Language-aware import expansion\n- Always emits trailing commas\n- Lua-native, zero dependencies\n- Fully configurable\n- Easy to extend for more languages\n\n## Supported Languages\n\n- JavaScript / TypeScript (`import {}` blocks)\n- Rust (`use {}` blocks)\n\n## Installation\n\n### lazy.nvim\n```\n{\n  'ducks/nvim-vandelay',\n  config = function()\n    require('vandelay').setup({\n      alphabetize = true, -- alphabetize module imports\n      threshold = 2, -- min items to multiline\n    })\n  end\n}\n```\n\n## Usage\n\nUse a keybinding:\n\n```\nvim.keymap.set('n', '\u003cleader\u003emi', function()\n  require('vandelay').format_current_line()\nend, { noremap = true, silent = true })\n```\n\n## What's it do?\n\nThis plugin applies opinionated import formatting. If you have 2 or more\nimports in a block, it will always expand to multiline.\n\nStart with this:\n\n`import { foo, bar, baz, qux } from './utils';`\n\nAnd get this:\n\n```\nimport {\n  foo,\n  bar,\n  baz,\n  qux\n} from './utils';\n```\n\nSame for Rust:\n\n`use std::{fs, io, path};`\n\nbecomes:\n\n```\nuse std::{\n  fs,\n  io,\n  path,\n};\n```\n\n## Testing\n\n`nvim --headless -c 'PlenaryBustedDirectory tests/ --minimal_init=tests/minimal_init.lua'`\n\n## TODOs\n\n- [] Add more languages\n- [] Treesitter integration\n- [] Configurable width \u0026 indentation\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducks%2Fnvim-vandelay","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fducks%2Fnvim-vandelay","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fducks%2Fnvim-vandelay/lists"}