You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, first of all thank you for this amazing plugin.
I've ran into an issue when trying to define number dial augends for hex and binary numbers with delimiters. When trying to increment or even decrement hex numbers, 2 leading zeroes are added every time. When trying to increment a binary number, I get an error message.
Dials with radix = 10 work perfectly.
Here is a screencap:
I've reduced the config to the following lines. I am using ' as a separator here, for c++, but the same issues happen when using '_' for rust.
E5108: Error executing lua: .../AppData/Local/nvim-data/lazy/dial.nvim/lua/dial/map.lua:49: function dial#operator#increment_normal, line 1: Vim(lua):E5108: Error executing lua ...cal/nvim-data/lazy/dial.nvim/lua/dial/augend/integer.lua:184: attempt to perform arithmetic on local 'd' (a nil value)
stack traceback:
...cal/nvim-data/lazy/dial.nvim/lua/dial/augend/integer.lua:184: in function 'to_string'
...cal/nvim-data/lazy/dial.nvim/lua/dial/augend/integer.lua:303: in function 'add'
...pData/Local/nvim-data/lazy/dial.nvim/lua/dial/handle.lua:208: in function 'operate'
...Data/Local/nvim-data/lazy/dial.nvim/lua/dial/command.lua:120: in function 'operator_normal'
[string ":lua"]:1: in main chunk
[C]: in function 'normal'
.../AppData/Local/nvim-data/lazy/dial.nvim/lua/dial/map.lua:49: in function 'manipulate'
C:/Users/alex-/AppData/Local/nvim/lua/plugins/dial.lua:7: in function <C:/Users/alex-/AppData/Local/nvim/lua/plugins/dial.lua:6>
stack traceback:
[C]: in function 'normal'
.../AppData/Local/nvim-data/lazy/dial.nvim/lua/dial/map.lua:49: in function 'manipulate'
C:/Users/alex-/AppData/Local/nvim/lua/plugins/dial.lua:7: in function <C:/Users/alex-/AppData/Local/nvim/lua/plugins/dial.lua:6>
The text was updated successfully, but these errors were encountered:
alex-tdrn
changed the title
hex and binary integer augen with delimiter does not work
delimited hex and binary integer augend do not work
Nov 29, 2023
Hello, first of all thank you for this amazing plugin.
I've ran into an issue when trying to define number dial augends for hex and binary numbers with delimiters. When trying to increment or even decrement hex numbers, 2 leading zeroes are added every time. When trying to increment a binary number, I get an error message.
Dials with
radix = 10
work perfectly.Here is a screencap:
I've reduced the config to the following lines. I am using ' as a separator here, for c++, but the same issues happen when using '_' for rust.
Here is the error message I received:
The text was updated successfully, but these errors were encountered: