overseer.nvim icon indicating copy to clipboard operation
overseer.nvim copied to clipboard

bug: Wrong autocomplete parameters with enum type

Open daniilrozanov opened this issue 11 months ago • 0 comments

Neovim version (nvim -v)

0.9.5

Operating system/version

MacOS 14.4

Describe the bug

I created task template with parameter as followed

build = {
name = "Build type",
desc = "Set build type",
type = "enum",
choices = config.build_types, -- {"Debug", "Release"}
default = config.build_types[1],
},

and when i am trying to open autocomplete window <C-x><C-o> and select Release suggestion, actual text becomes DebugRelease. As we see, autocompletion does not deletes previous input: Снимок экрана 2024-03-08 в 04 05 07

What is the severity of this bug?

minor (annoyance)

Steps To Reproduce

Bug can be reproduced by register_template of trivial template with parameter which contains

{
      type = "enum",
      choices = {"ONE", "TWO", "THREE"},
}

Expected Behavior

I suppose previous input has to be deleted after confirming new suggestion

EDIT.

BTW, where can i redefine this <C-x><C-o> keymap?

daniilrozanov avatar Mar 08 '24 01:03 daniilrozanov