{"id":32747910,"url":"https://github.com/alassek/deepl.nvim","last_synced_at":"2026-05-13T20:33:59.338Z","repository":{"id":321867849,"uuid":"1087466531","full_name":"alassek/deepl.nvim","owner":"alassek","description":"Translate text in Neovim using the DeepL API","archived":false,"fork":false,"pushed_at":"2025-11-01T01:13:15.000Z","size":13,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-11-01T03:10:01.115Z","etag":null,"topics":["deepl","lua","neovim","neovim-plugin","translation"],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/alassek.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-01T01:02:36.000Z","updated_at":"2025-11-01T02:06:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f93b899-6e2d-4f2a-87f4-af5f7b78b1ab","html_url":"https://github.com/alassek/deepl.nvim","commit_stats":null,"previous_names":["alassek/deepl.nvim"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/alassek/deepl.nvim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alassek%2Fdeepl.nvim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alassek%2Fdeepl.nvim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alassek%2Fdeepl.nvim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alassek%2Fdeepl.nvim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/alassek","download_url":"https://codeload.github.com/alassek/deepl.nvim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/alassek%2Fdeepl.nvim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32999448,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"ssl_error","status_checked_at":"2026-05-13T13:14:51.610Z","response_time":115,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["deepl","lua","neovim","neovim-plugin","translation"],"created_at":"2025-11-03T20:01:35.373Z","updated_at":"2026-05-13T20:33:59.334Z","avatar_url":"https://github.com/alassek.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# deepl.nvim\n\nA Neovim plugin for translating text in-place using the DeepL API. Select any text in your editor and translate it instantly without leaving your workflow.\n\n## Requirements\n\n- Neovim \u003e= 0.7.0\n- [plenary.nvim](https://github.com/nvim-lua/plenary.nvim) (for `plenary.curl`)\n- [curl](https://curl.se/) available in your $PATH\n- DeepL API key (see [DeepL API](https://www.deepl.com/en/products/api))\n\n## Installation\n\n### Using [lazy.nvim](https://github.com/folke/lazy.nvim)\n\n```lua\n{\n  \"alassek/deepl.nvim\",\n  dependencies = { \"nvim-lua/plenary.nvim\" },\n  opts = {\n    api_token = os.getenv(\"DEEPL_API_TOKEN\"),\n  }\n}\n```\n\n## Configuration\n\n### Setup Options\n\n```lua\nrequire('deepl').setup({\n  api_token = '',                   -- Your DeepL API token (required)\n  target_lang = 'EN-US',            -- Default target language\n  model_type = 'quality_optimized', -- Translation model type\n  formality = 'default',            -- Formality level\n})\n```\n\n### Available Options\n\n#### Target Languages\n\nSupported target languages include:\n- `EN-US` - English (American)\n- `EN-GB` - English (British) \n- `DE` - German\n- `FR` - French\n- `ES` - Spanish\n- `IT` - Italian\n- `JA` - Japanese\n- `ZH-HANS` - Chinese (Simplified)\n- `ZH-HANT` - Chinese (Traditional)\n\nSee the [DeepL API documentation](https://developers.deepl.com/docs/getting-started/supported-languages) for the\ncomplete list.\n\n#### Model Types\n\n- `quality_optimized`\n- `prefer_quality_optimized`\n- `latency_optimized`\n\n#### Formality Levels\n\n- `default`\n- `more`\n- `less`\n- `prefer_more`\n- `prefer_less`\n\n## Usage\n\n### Basic Translation\n\n1. Select text in visual mode (`v`, `V`, or `Ctrl-v`)\n2. Run `:Translate` to translate to your default target language\n3. The selected text will be replaced with the translation\n\n### Specify Source Language\n\nIf DeepL can't detect the source language correctly, specify it manually:\n\n```vim\n:Translate DE\n```\n\nThis tells DeepL that the source text is in German.\n\n### Interactive Configuration\n\nUse the `:DeepL` command to access configuration menus:\n\n```vim\n:DeepL                \" Open main configuration menu\n:DeepL target_language \" Directly open target language selection\n:DeepL model          \" Directly open model type selection  \n:DeepL formality      \" Directly open formality selection\n```\n\n### Buffer-Local Settings\n\nInteractive configuration will set buffer-local settings. This means if you switch buffers you will revert to the global\nconfiguration. Global settings can be updated dynamically via `vim.g.deepl_formality` etc.\n\n```lua\n-- Change target language globally\nvim.g.deepl_target_language = \"FR\"\n\n-- Set for current buffer only\nvim.b.deepl_formality = \"more\"\nvim.b.deepl_model_type = \"latency_optimized\"\n```\n\n## API Token Setup\n\n### DeepL Free vs Pro\n\nThe plugin automatically detects your account type based on your API token:\n- Free API tokens end with `:fx` \n- Pro API tokens don't have this suffix\n\n### Environment Variable (Recommended)\n\nFor security, store your API token in an environment variable:\n\n```bash\nexport DEEPL_API_TOKEN=\"your-token-here\"\n```\n\nThen in your Neovim config:\n\n```lua\napi_token = os.getenv(\"DEEPL_API_TOKEN\")\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falassek%2Fdeepl.nvim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Falassek%2Fdeepl.nvim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Falassek%2Fdeepl.nvim/lists"}