Title: Problems defining close keymap in neovim with lazy plugin manager · Issue #519 · vim-vdebug/vdebug · GitHub
Open Graph Title: Problems defining close keymap in neovim with lazy plugin manager · Issue #519 · vim-vdebug/vdebug
X Title: Problems defining close keymap in neovim with lazy plugin manager · Issue #519 · vim-vdebug/vdebug
Description: I am using neovim 0.9 and nvchad config which under the hood uses lazy plugin manager. Maybe I am using a fuzzy and strange environment setup, but for some reason I cannot remap any key to close event. I have this lazy plugin configurati...
Open Graph Description: I am using neovim 0.9 and nvchad config which under the hood uses lazy plugin manager. Maybe I am using a fuzzy and strange environment setup, but for some reason I cannot remap any key to close ev...
X Description: I am using neovim 0.9 and nvchad config which under the hood uses lazy plugin manager. Maybe I am using a fuzzy and strange environment setup, but for some reason I cannot remap any key to close ev...
Opengraph URL: https://github.com/vim-vdebug/vdebug/issues/519
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Problems defining close keymap in neovim with lazy plugin manager","articleBody":"I am using neovim 0.9 and nvchad config which under the hood uses lazy plugin manager. Maybe I am using a fuzzy and strange environment setup, but for some reason I cannot remap any key to close event. I have this lazy plugin configuration set:\r\n\r\n```\r\n {\"vim-vdebug/vdebug\",\r\n lazy = false,\r\n enabled = true,\r\n config = function()\r\n vim.api.nvim_echo({{'loading vdebug', 'none'}}, false, {})\r\n vim.cmd('let g:vdebug_keymap = { \"run\" : \"\u003cf5\u003e\",\"run_to_cursor\" : \"\u003cf6\u003e\",\"step_over\" : \"\u003cf7\u003e\",\"step_into\" : \"\u003cf8\u003e\",\"step_out\" : \"\u003cs-f8\u003e\", \"close\" : \"\u003cf4\u003e\", \"detach\" : \"\u003cf5\u003ed\", \"set_breakpoint\" : \"\u003cf10\u003e\", \"get_context\" : \"\u003cf10\u003ex\", \"eval_under_cursor\" : \"\u003cf10\u003ec\", \"eval_visual\" : \"\u003cf10\u003ee\" }')\r\n```\r\nAFAIK Everything works but the close button. So I have to call `:python3 debugger.close()` to exit debugger.\r\n\r\nThe keymaps are set because debugger status says that the stop key is F4:\r\n\r\n` ▌▌ [\u003cf5\u003e Start] [\u003cF4\u003e Stop] [:help Vdebug]`\r\n\r\nand calling `:let vdebug_keymap` outs:\r\n```\r\nvdebug_keymap {'run_to_cursor': '\u003cf6\u003e', 'get_context': '\u003cf10\u003ex', 'eval_visual': '\u003cf10\u003ee', 'step_into': '\u003cf8\u003e', 'eval_under_curso\r\nr': '\u003cf10\u003ec', 'step_over': '\u003cf7\u003e', 'run': '\u003cf5\u003e', 'close': '\u003cF4\u003e', 'step_out': '\u003cs-f8\u003e', 'detach': '\u003cf5\u003ed', 'set_breakpoint': '\u003cf10\u003e'} \r\n```\r\n\r\n\r\nThe only way to make it work is adding this vim cmd instruction at the end of the lazy plugin config function:\r\n\r\n`vim.cmd(\":noremap \u003cF4\u003e :python3 debugger.close()\u003ccr\u003e\")`\r\n","author":{"url":"https://github.com/aleixq","@type":"Person","name":"aleixq"},"datePublished":"2023-03-10T10:51:20.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/519/vdebug/issues/519"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:86e0d31c-fe5d-d41f-3fb1-887d23a7486a |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CC12:277A0:60B62:7EF2D:698EC829 |
| html-safe-nonce | 33ac76655acae31d4268a3995d4b1f564d4fc8b1881fc68506b052794d0f3b55 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQzEyOjI3N0EwOjYwQjYyOjdFRjJEOjY5OEVDODI5IiwidmlzaXRvcl9pZCI6IjQ2NzY4Mjg1Nzk0NTA3Njc0MDEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 5528341b0faebffca9100fdd2e2ad5d2d82356171ba16fb1395ba3129931f625 |
| hovercard-subject-tag | issue:1618777270 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/vim-vdebug/vdebug/519/issue_layout |
| twitter:image | https://opengraph.githubassets.com/11e4a6f4ece3643223ecef9da1c365866bb89c4fb598ccfd157f7cc1f934d6cb/vim-vdebug/vdebug/issues/519 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/11e4a6f4ece3643223ecef9da1c365866bb89c4fb598ccfd157f7cc1f934d6cb/vim-vdebug/vdebug/issues/519 |
| og:image:alt | I am using neovim 0.9 and nvchad config which under the hood uses lazy plugin manager. Maybe I am using a fuzzy and strange environment setup, but for some reason I cannot remap any key to close ev... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aleixq |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb2828a801ee6b7be618f3ac76fbf55def35bbc30f053a9c41bf90210b8b72ba |
| turbo-cache-control | no-preview |
| go-import | github.com/vim-vdebug/vdebug git https://github.com/vim-vdebug/vdebug.git |
| octolytics-dimension-user_id | 37241739 |
| octolytics-dimension-user_login | vim-vdebug |
| octolytics-dimension-repository_id | 4597834 |
| octolytics-dimension-repository_nwo | vim-vdebug/vdebug |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 4597834 |
| octolytics-dimension-repository_network_root_nwo | vim-vdebug/vdebug |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | e6b91a7e6e46287d26887e3fb7a4161657bab8f7 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width