neovim/runtime/lua/vim
Lewis Russell ff575b3886 perf(filetype): optimize internal data structures
This changes the type for the sorted pattern table from
`vim.filetype.mapping[]` to `vim.filetype.mapping.sorted[]`

E.g. instead of:

```lua
{
  { ['/debian/changelog$'] = {'debchangelog', { parent = '/debian/' } },
  { ['%.git/']             = { detect.git   , { parent = 'git/', priority = -1 } },
}
```

It is now:

```lua
{
  { '/debian/, '/debian/changelog$', 'debchangelog' },
  { 'git/'   , '%.git/'            , detect.git    , -1 },
}
```

Overall this should roughly cut the amount of tables used by 3, and
replaces lots of hash indexes with array indexes.
2024-11-11 13:42:24 +00:00
..
_meta docs: misc (#30914) 2024-11-09 08:10:56 +08:00
deprecated refactor(lua): use tuple syntax everywhere #29111 2024-06-04 06:06:02 -07:00
filetype fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
func feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
health fix(health): check more "old" files #30421 2024-09-19 06:34:23 -07:00
lsp refactor(lsp): simplify reference range logic 2024-11-10 09:40:37 +00:00
provider docs: misc 2024-10-23 14:13:42 +02:00
treesitter fix(treesitter): close InspectTree/EditQuery window on BufUnload (#31036) 2024-11-03 11:28:31 +08:00
ui/clipboard fix(osc52): use nvim_chan_send() to stderr for copying (#26690) 2023-12-21 11:47:04 +08:00
_comment.lua fix(treesitter): suppress get_parser warnings via opts.error 2024-09-28 00:31:45 +02:00
_defaults.lua feat(defaults): unimpaired empty line below/above cursor #30984 2024-11-04 06:06:18 -08:00
_editor.lua fix(lua): show stacktrace for error in vim.on_key() callback (#31021) 2024-11-02 10:11:06 +08:00
_init_packages.lua refactor(types): more fixes 2024-03-06 10:45:22 +00:00
_inspector.lua docs: render @since versions, 0 means experimental #30649 2024-10-04 02:13:31 -07:00
_meta.lua refactor: rename vim.highlight => vim.hl 2024-10-21 00:54:43 +02:00
_options.lua docs(lua): "vim.bo" is always equivalent to :setlocal (#30733) 2024-10-09 11:31:14 +00:00
_system.lua fix(vim.system): resolve executable paths on windows 2024-11-08 16:29:44 +00:00
_watch.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
diagnostic.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
F.lua fix(diagnostic): typing 2024-01-16 09:33:10 +00:00
filetype.lua perf(filetype): optimize internal data structures 2024-11-11 13:42:24 +00:00
fs.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
func.lua fix(treesitter): return correct match table in iter_captures() 2024-03-27 10:39:46 +00:00
glob.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
health.lua feat(health): highlight headings #30525 2024-09-26 07:45:03 -07:00
hl.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
inspect.lua fix(inspect): escape identifiers that are lua keywords (#19898) 2022-08-23 13:02:55 +02:00
iter.lua docs: misc #28970 2024-09-01 13:01:24 -07:00
keymap.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
loader.lua refactor(loader): format annotations 2024-10-31 15:20:29 +00:00
lsp.lua feat(lsp)!: remove client-server handlers from vim.lsp.handlers 2024-11-01 09:17:39 +00:00
provider.lua refactor: create function for deferred loading 2024-02-03 16:53:41 +01:00
re.lua docs: auto-generate docs for vim.lpeg and vim.re 2024-01-14 11:08:33 +00:00
secure.lua feat(vim.validate): improve fast form and deprecate spec form 2024-10-21 11:32:06 +01:00
shared.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
snippet.lua fix(snippet): modify base indentation when there's actually whitespace (#29670) 2024-07-16 19:30:22 +02:00
termcap.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
text.lua fix(vim.text): handle very long strings (#30075) 2024-08-17 22:28:03 -05:00
treesitter.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
ui.lua fix: another round of type annotation fixes 2024-10-31 11:55:23 +00:00
uri.lua fix(lua): remove uri fragment from file paths (#27647) 2024-02-28 10:50:53 +01:00
version.lua docs: render @since versions, 0 means experimental #30649 2024-10-04 02:13:31 -07:00
vimhelp.lua fix(treesitter): suppress get_parser warnings via opts.error 2024-09-28 00:31:45 +02:00