neovim/test/functional
Riley Bruins b9b408a56c
feat(treesitter): start moving get_parser to return nil #30313
**Problem:** `vim.treesitter.get_parser` will throw an error if no parser
can be found.

- This means the caller is responsible for wrapping it in a `pcall`,
  which is easy to forget
- It also makes it slightly harder to potentially memoize `get_parser`
  in the future
- It's a bit unintuitive since many other `get_*` style functions
  conventionally return `nil` if no object is found (e.g. `get_node`,
  `get_lang`, `query.get`, etc.)

**Solution:** Return `nil` if no parser can be found or created

- This requires a function signature change, and some new assertions in
  places where the parser will always (or should always) be found.
- This commit starts by making this change internally, since it is
  breaking. Eventually it will be rolled out to the public API.
2024-09-13 05:09:11 -07:00
..
api refactor(test): rename alter_slashes, invert its behavior 2024-09-09 12:23:54 +02:00
autocmd refactor(test): rename alter_slashes, invert its behavior 2024-09-09 12:23:54 +02:00
core feat(log): use "ui" as default name for TUI client #30345 2024-09-11 17:25:00 -07:00
editor Merge pull request #30272 from bfredl/replace_emoji 2024-09-06 12:08:26 +02:00
ex_cmds refactor(test): rename alter_slashes, invert its behavior 2024-09-09 12:23:54 +02:00
fixtures feat(lsp): vim.lsp.buf.format() supports textDocument/rangesFormatting #27323 2024-06-24 07:54:56 -07:00
legacy vim-patch:9.1.0708: Recursive window update does not account for reset skipcol (#30217) 2024-09-01 20:19:19 +08:00
lua refactor(test): rename alter_slashes, invert its behavior 2024-09-09 12:23:54 +02:00
options fix(test): "tempdir not a directory" in CI logs 2024-09-09 12:23:54 +02:00
plugin test(health): "test_plug/health/init.lua" completes as "test_plug" 2024-09-11 11:40:56 +02:00
provider refactor(tests): again yet more global highlight definitions 2024-08-14 14:03:34 +02:00
script
shada refactor(shada): rework msgpack decoding without msgpack-c 2024-08-05 11:12:44 +02:00
terminal refactor(test): rename alter_slashes, invert its behavior 2024-09-09 12:23:54 +02:00
treesitter feat(treesitter): start moving get_parser to return nil #30313 2024-09-13 05:09:11 -07:00
ui fix: replace NVIM with Nvim in default titlestring (#30348) 2024-09-11 20:32:08 +00:00
vimscript refactor(test): rename alter_slashes, invert its behavior 2024-09-09 12:23:54 +02:00
example_spec.lua
preload.lua
testnvim.lua refactor(test): rename alter_slashes, invert its behavior 2024-09-09 12:23:54 +02:00