summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua
AgeCommit message (Collapse)AuthorFiles
2023-04-14feat(lua)!: add stricter vim.tbl_islist() and rename old one to ↵NAKAI Tsuyoshi1
vim.tbl_isarray() (#16440) feat(lua)!: add stricter vim.tbl_islist(), rename vim.tbl_isarray() Problem: `vim.tbl_islist` allows gaps in tables with integer keys ("arrays"). Solution: Rename `vim.tbl_islist` to `vim.tbl_isarray`, add new `vim.tbl.islist` that checks for consecutive integer keys that start from 1.
2023-04-14feat(lua): vim.tbl_contains supports general tables and predicates (#23040)Christian Clason9
* feat(lua): vim.tbl_contains supports general tables and predicates Problem: `vim.tbl_contains` only works for list-like tables (integer keys without gaps) and primitive values (in particular, not for nested tables). Solution: Rename `vim.tbl_contains` to `vim.list_contains` and add new `vim.tbl_contains` that works for general tables and optionally allows `value` to be a predicate function that is checked for every key.
2023-04-13refactor: remove modelines from Lua filesGregory Anders9
Now that we have builtin EditorConfig support and a formatting check in CI, these are not necessary.
2023-04-13fix(loader): reset hashes when running the loaderLewis Russell1
2023-04-12fix(diagnostic): rename buffer → bufnr in type annotation (#23042)Mathias Fußenegger1
See `:h diagnostic-structure`, the property name is `bufnr`, not `buffer`.
2023-04-11feat(lua): vim.region accepts getpos() arg (#22635)NAKAI Tsuyoshi2
2023-04-11fix(treesitter): Use the correct replacement args for #gsub! directive (#23015)Scott Ming1
fix(treesitter): use the correct replacement args for #gsub! directive
2023-04-11fix(health): check for _host_prog variables properly (#23014)zeertzjq1
2023-04-11fix(man.lua): don't continue on command error (#23009)zeertzjq1
Fix #21169
2023-04-10fix(health): combine python and virtualenv healthchecks (#23004)Gregory Anders1
fix(health): combine python and virtualenv health checks
2023-04-10fix(health): fix typo in function nameGregory Anders1
2023-04-10refactor: rewrite perl healthcheck in luadundargoc1
This is required to remove the vimscript checkhealth functions.
2023-04-10refactor: rewrite node healthcheck in luadundargoc1
This is required to remove the vimscript checkhealth functions.
2023-04-10refactor: rewrite ruby healthcheck in luadundargoc1
This is required to remove the vimscript checkhealth functions.
2023-04-10refactor: rewrite virtualenv healthcheck in luadundargoc1
This is required to remove the vimscript checkhealth functions.
2023-04-09refactor: rewrite python provider healthcheck in Luadundargoc1
This is required to remove the vimscript checkhealth functions.
2023-04-09refactor: rewrite clipboard provider healthchecks in Luadundargoc1
This is required to remove the vimscript checkhealth functions.
2023-04-07feat(lua): allow vim.F.if_nil to take multiple arguments (#22903)Gregory Anders1
The first argument which is non-nil is returned. This is useful when using nested default values (e.g. in the EditorConfig plugin). Before: local enable = vim.F.if_nil(vim.b.editorconfig, vim.F.if_nil(vim.g.editorconfig, true)) After: local enable = vim.F.if_nil(vim.b.editorconfig, vim.g.editorconfig, true)
2023-04-06fix(treesitter): do not track ranges of the root tree (#22912)Lewis Russell1
Fixes #22911
2023-04-05refactor: rename local API alias from a to apiLewis Russell6
Problem: Codebase inconsistently binds vim.api onto a or api. Solution: Use api everywhere. a as an identifier is too short to have at the module level.
2023-04-05refactor(lsp): do not parse verbose output when overwriting options (#22810)Michal Liszcz1
2023-04-04fix(windows): consistent normalization in fs.finddundargoc2
vim.fs.find(".luacheckrc") ``` c:\\projects\\neovim/.luacheckrc # before c:/projects/neovim/.luacheckrc # after ``` Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
2023-04-04test: replace lfs with luv and vim.fsdundargoc2
test: replace lfs with luv luv already pretty much does everything lfs does, so this duplication of dependencies isn't needed.
2023-04-04refactor(treesitter): move inspect_tree implLewis Russell2
2023-04-04docs: fix typosdundargoc3
Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: Raphael <glephunter@gmail.com> Co-authored-by: C.D. MacEachern <craig.daniel.maceachern@gmail.com> Co-authored-by: himanoa <matsunoappy@gmail.com>
2023-04-04fix(treesitter): disable folding in inspect_tree() (#22885)Lewis Russell1
2023-04-04refactor(treesitter): delegate region calculation to treesitter (#22576)Lewis Russell1
2023-04-04fix(treesitter): use capture metadata range if exists danilax9991
use `treesitter.get_range` instead of inline expression
2023-04-03vim-patch:9.0.1438: .fs files are falsely recognized as forth files (#22871)Christian Clason1
Problem: .fs files are falsely recognized as forth files. Solution: Check 100 lines for something that looks like forth. (Johan Kotlinski, closes vim/vim#12219, closes vim/vim#11988) https://github.com/vim/vim/commit/065088d5549e7711668321cc5a77c9a9b684b142 Co-authored-by: Johan Kotlinski <kotlinski@gmail.com>
2023-04-02refactor(lua): get all marks instead of iterating over namespacesLuuk van Baal1
Inspector now also includes highlights set in anonymous namespaces. Close #22732
2023-04-01feat: allow function passed to defaulttable to take an argument (#22839)Gregory Anders1
Pass the value of the key being accessed to the create function, to allow users to dynamically generate default values.
2023-04-01fix(health): stop using deprecated ts.language.inspect_language() (#22850)Sizhe Zhao1
2023-04-01refactor(treesitter)!: rename help parser to vimdocChristian Clason1
2023-03-31refactor(loader): cache hash informationLewis Russell1
Whenever we run fs_stat() on a path, save this information in the loader so it can be re-used. - Loader.loadfile: Remove arguments `hash` as it is no longer needed. - Loader.loader: Use _G.loadstring instead of Loader.load This allows plugins to wrap loadstring to inspection and profiling - factor out read file logic
2023-03-31fix(diagnostic): use correct field name for tags (#22835)Akin1
LSP tags are added to the diagnostic as "tags" but referred to as "_tags" in the diagnostic underline handler
2023-03-31fix(loader): disable profiling by defaultLewis Russell1
2023-03-30feat(diagnostic): add support for tagsLewis Russell4
The LSP spec supports two tags that can be added to diagnostics: unnecessary and deprecated. Extend vim.diagnostic to be able to handle these.
2023-03-30Merge pull request #22791 from lewis6991/refactor/loadermiscLewis Russell2
refactor(loader): changes
2023-03-30feat: add `vim.treesitter.language.get_filetypes()` (#22643)Lewis Russell3
2023-03-29vim-patch:9.0.1430: Livebook files are not recognized (#22808)Christian Clason1
Problem: Livebook files are not recognized. Solution: Add a pattern for Livebook files. (Mathias Jean Johansen, closes vim/vim#12203) https://github.com/vim/vim/commit/64002035178ac3e0d9ab7269d1bf06c6ede5a854 Co-authored-by: Mathias Jean Johansen <mathias@mjj.io>
2023-03-26refactor(loader): simplify tracking logicLewis Russell1
2023-03-26feat(vim.fs): improve normalizeLewis Russell2
- Add options argument with an option to expand env vars - Resolve '//' -> '/' - Use in vim.loader
2023-03-26refactor(loader): add typing for package.loadersLewis Russell1
2023-03-26refactor(loader): remove BufWritePost autocmdLewis Russell1
2023-03-26refactor(loader): use vim.fsLewis Russell2
2023-03-26feat(lua): add `vim.loader`Folke Lemaitre2
feat: new faster lua loader using byte-compilation
2023-03-26test: use exec_capture() in more places (#22787)zeertzjq1
Problem: Using `meths.exec2("code", { output = true })` is too verbose. Solution: Use exec_capture() in more places.
2023-03-25feat(api): nvim_exec2(), deprecate nvim_exec() #19032Evgeni Chasnovski2
Problem: The signature of nvim_exec() is not extensible per ":help api-contract". Solution: Introduce nvim_exec2() and deprecate nvim_exec().
2023-03-25feat(lsp): render markdown in docs hover #22766Roberto Pommella Alegro1
Problem: LSP docs hover (textDocument/hover) doesn't handle HTML escape seqs in markdown. Solution: Convert common HTML escape seqs to a nicer form, to display in the float. closees #22757 Signed-off-by: Kasama <robertoaall@gmail.com>
2023-03-25fix(lsp): add missing silent check in lsp hover handler (#22763)Micah Halter1
Fixup to #21531.