Closed gregorias closed 2 months ago
:h nvim-surround
0.9.5
Tagged (Stable)
N/A
Providing just the surrounds field to buffer_setup should type check.
surrounds
buffer_setup
Providing just the surrounds field to buffer_setup triggers a warning diagnostic from LuaLS.
The user_options annotations is at https://github.com/kylechui/nvim-surround/blob/84a26afce16cffa7e3322cfa80a42cddf60616eb/lua/nvim-surround/annotations.lua#L56. Could you either mark fields as optional (with a question mark) or change the type annotation of buffer_setup?
user_options
Seems related to #308 ?
Indeed, it’s a duplicate.
Do you mind checking out the PR and seeing if the question marks are in the right place?
I checked it. Looks good.
Checklist
:h nvim-surround
to see if there might be any relevant information there?Neovim Version
0.9.5
Plugin Version
Tagged (Stable)
Minimal Configuration
N/A
Sample Buffer
N/A
Keystroke Sequence
N/A
Expected behavior
Providing just the
surrounds
field tobuffer_setup
should type check.Actual behavior
Providing just the
surrounds
field tobuffer_setup
triggers a warning diagnostic from LuaLS.Additional context
The
user_options
annotations is at https://github.com/kylechui/nvim-surround/blob/84a26afce16cffa7e3322cfa80a42cddf60616eb/lua/nvim-surround/annotations.lua#L56. Could you either mark fields as optional (with a question mark) or change the type annotation ofbuffer_setup
?