neovim/test/functional/plugin/lsp
dundargoc e016f5bee6 test: reduce exec_lua calls
`exec_lua` makes code slighly harder to read, so it's beneficial to
remove it in cases where it's possible or convenient.

Not all `exec_lua` calls should be removed even if the test passes as it
changes the semantics of the test even if it happens to pass.

From https://github.com/neovim/neovim/pull/28155#discussion_r1548185779:

"Note for tests like this, which fundamentally are about conversion, you
end up changing what conversion you are testing. Even if the result
happens to be same (as they often are, as we like the rules to be
consistent if possible), you are now testing the RPC conversion rules
instead of the vim script to in-process lua conversion rules."

From https://github.com/neovim/neovim/pull/28155#discussion_r1548190152:

"A test like this specifies that the cursor is valid immediately and not
after a separate cycle of normal (or an other input-processing) mode."
2024-04-04 13:10:11 +02:00
..
codelens_spec.lua refactor: format test/* 2024-01-03 02:09:29 +01:00
completion_spec.lua feat(lsp): support completion itemDefaults 2024-02-27 16:50:51 +01:00
diagnostic_spec.lua test: correct order of arguments to eq() (#27816) 2024-03-11 22:23:14 +08:00
handler_spec.lua refactor: format test/* 2024-01-03 02:09:29 +01:00
helpers.lua test: reduce exec_lua calls 2024-04-04 13:10:11 +02:00
incremental_sync_spec.lua test: rename (meths, funcs) -> (api, fn) 2024-01-12 18:59:14 +00:00
inlay_hint_spec.lua test: reduce exec_lua calls 2024-04-04 13:10:11 +02:00
semantic_tokens_spec.lua test: reduce exec_lua calls 2024-04-04 13:10:11 +02:00
snippet_spec.lua fix(lsp): refactor escaping snippet text (#25611) 2023-10-14 09:06:40 +02:00
utils_spec.lua refactor: format test/* 2024-01-03 02:09:29 +01:00