Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to set element_mappings #216

Closed
fiplox opened this issue Jan 27, 2023 · 2 comments
Closed

How to set element_mappings #216

fiplox opened this issue Jan 27, 2023 · 2 comments

Comments

@fiplox
Copy link

fiplox commented Jan 27, 2023

I can't set element mappings.
With this config:

		element_mappings = {
			scopes = {
				edit = 'l',
			},
                 },

I'm getting this error:

Rendering failed: ...er/.local/share/nvim/lazy/nvim-dap-ui/lua/dapui/util.lua:127: bad argument #1 to 'pairs' (table e
xpected, got nil)
stack traceback:
        ...er/.local/share/nvim/lazy/nvim-dap-ui/lua/dapui/util.lua:17: in function <...er/.local/share/nvim/lazy/nvim
-dap-ui/lua/dapui/util.lua:16>
        [C]: in function 'pairs'
        ...er/.local/share/nvim/lazy/nvim-dap-ui/lua/dapui/util.lua:127: in function 'apply_mapping'
        .../share/nvim/lazy/nvim-dap-ui/lua/dapui/render/canvas.lua:138: in function 'render_buffer'
        ...hare/nvim/lazy/nvim-dap-ui/lua/dapui/elements/scopes.lua:33: in function 'render'
        ...hare/nvim/lazy/nvim-dap-ui/lua/dapui/elements/scopes.lua:20: in function <...hare/nvim/lazy/nvim-dap-ui/lua
/dapui/elements/scopes.lua:19>
        [C]: in function 'xpcall'
        ...er/.local/share/nvim/lazy/nvim-dap-ui/lua/dapui/util.lua:16: in function <...er/.local/share/nvim/lazy/nvim
-dap-ui/lua/dapui/util.lua:12>
rcarriga added a commit that referenced this issue Jan 28, 2023
@rcarriga
Copy link
Owner

Should be fixed by latest commit 😄

@fiplox
Copy link
Author

fiplox commented Jan 28, 2023

Yep, working as expected :) Thx!

@fiplox fiplox closed this as completed Jan 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants