aboutsummaryrefslogtreecommitdiff
path: root/runtime
Commit message (Collapse)AuthorAge
...
* | test: replace lfs with luv and vim.fsdundargoc2023-04-04
| | | | | | | | | | | | test: replace lfs with luv luv already pretty much does everything lfs does, so this duplication of dependencies isn't needed.
* | refactor(treesitter): move inspect_tree implLewis Russell2023-04-04
| |
* | docs: fix typosdundargoc2023-04-04
| | | | | | | | | | | | 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>
* | fix(treesitter): disable folding in inspect_tree() (#22885)Lewis Russell2023-04-04
| |
* | refactor(treesitter): delegate region calculation to treesitter (#22576)Lewis Russell2023-04-04
| |
* | fix(treesitter): use capture metadata range if exists danilax9992023-04-04
| | | | | | use `treesitter.get_range` instead of inline expression
* | vim-patch:9.0.1438: .fs files are falsely recognized as forth files (#22871)Christian Clason2023-04-03
| | | | | | | | | | | | | | | | | | 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>
* | Merge pull request #22847 from luukvbaal/redrstatusbfredl2023-04-03
|\ \ | | | | | | fix(ui): ruler is not redrawn in cmdline with redrawstatus
| * | fix(ui): ruler is not redrawn in cmdline with redrawstatusLuuk van Baal2023-04-02
| | |
* | | Merge pull request #22783 from luukvbaal/inspectbfredl2023-04-03
|\ \ \ | |_|/ |/| | refactor(lua): get all extmarks instead of iterating over namespaces
| * | refactor(lua): get all marks instead of iterating over namespacesLuuk van Baal2023-04-02
| |/ | | | | | | | | | | Inspector now also includes highlights set in anonymous namespaces. Close #22732
* / refactor(defaults)!: change default 'commentstring' value to empty (#22862)zeertzjq2023-04-02
|/
* Merge pull request #22778 from luukvbaal/getextbfredl2023-04-02
|\ | | | | feat(extmarks): extend nvim_buf_get_extmarks()
| * feat(extmarks): extend nvim_buf_get_extmarks()Luuk van Baal2023-04-01
| | | | | | | | | | | | | | Problem: Can not get all extmarks in a buffer. Properties are missing from the details array. Solution: Allow getting all extmarks in a buffer by supplying a -1 "ns_id". Add missing properties to the details array.
* | Merge pull request #22832 from clason/bump-LuvChristian Clason2023-04-01
|\ \ | | | | | | | | | build(deps): bump luv to HEAD docs(luvref): update to version bump
| * | docs(luvref): update to version bumpChristian Clason2023-04-01
| | |
* | | feat: allow function passed to defaulttable to take an argument (#22839)Gregory Anders2023-04-01
| | | | | | | | | | | | Pass the value of the key being accessed to the create function, to allow users to dynamically generate default values.
* | | fix(health): stop using deprecated ts.language.inspect_language() (#22850)Sizhe Zhao2023-04-01
| | |
* | | docs(treesitter): add query injectionsChristian Clason2023-04-01
| | |
* | | refactor(treesitter)!: rename help parser to vimdocChristian Clason2023-04-01
| | |
* | | fix(treesitter): update queries from nvim-treesitterChristian Clason2023-04-01
| | | | | | | | | | | | remove self-injection for C preprocessor macros (can be very slow)
* | | fix(tests): adapt treesitter/highlight_spec priority testChristian Clason2023-04-01
| | | | | | | | | | | | | | | Still relied on the old `@Foo`->`Foo` capture to highlight mechanism; use capture with default highlight instead.
* | | refactor(loader): cache hash informationLewis Russell2023-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
* | | fix(api): return both link and attributes with nvim_get_hl (#22824)Sindre T. Strøm2023-03-31
| | | | | | | | | | | | | | | Problem: No way to get the actual highlight attributes for a linked group through |nvim_get_hl()| (not the attributes from the link target). Solution: Return the actual attributes as well as the link target name.
* | | fix(diagnostic): use correct field name for tags (#22835)Akin2023-03-31
| | | | | | | | | | | | LSP tags are added to the diagnostic as "tags" but referred to as "_tags" in the diagnostic underline handler
* | | fix(loader): disable profiling by defaultLewis Russell2023-03-31
|/ /
* | feat(diagnostic): add support for tagsLewis Russell2023-03-30
| | | | | | | | | | | | The LSP spec supports two tags that can be added to diagnostics: unnecessary and deprecated. Extend vim.diagnostic to be able to handle these.
* | Merge pull request #22791 from lewis6991/refactor/loadermiscLewis Russell2023-03-30
|\ \ | | | | | | refactor(loader): changes
| * | refactor(loader): simplify tracking logicLewis Russell2023-03-26
| | |
| * | feat(vim.fs): improve normalizeLewis Russell2023-03-26
| | | | | | | | | | | | | | | | | | - Add options argument with an option to expand env vars - Resolve '//' -> '/' - Use in vim.loader
| * | refactor(loader): add typing for package.loadersLewis Russell2023-03-26
| | |
| * | refactor(loader): remove BufWritePost autocmdLewis Russell2023-03-26
| | |
| * | refactor(loader): use vim.fsLewis Russell2023-03-26
| |/
* | feat: add `vim.treesitter.language.get_filetypes()` (#22643)Lewis Russell2023-03-30
| |
* | vim-patch:9.0.1430: Livebook files are not recognized (#22808)Christian Clason2023-03-29
| | | | | | | | | | | | | | | | | | 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>
* | fix(api): Use local LastSet structure in nvim_get_option_info (#22741)Michal Liszcz2023-03-29
|/ | | | | | | | | | fix(api): use local LastSet structure in nvim_get_option_info * nvim_get_option_info is deprecated. It is always using the global LastSet information as reported in #15232. * nvim_get_option_info2 is added. The new function additionally accepts an 'opts' table {scope, buf, win} allowing to specify the option scope and query local options from another buffer or window.
* feat(lua): add `vim.loader`Folke Lemaitre2023-03-26
| | | feat: new faster lua loader using byte-compilation
* test: use exec_capture() in more places (#22787)zeertzjq2023-03-26
| | | | | | | Problem: Using `meths.exec2("code", { output = true })` is too verbose. Solution: Use exec_capture() in more places.
* feat(api): nvim_exec2(), deprecate nvim_exec() #19032Evgeni Chasnovski2023-03-25
| | | | | | | Problem: The signature of nvim_exec() is not extensible per ":help api-contract". Solution: Introduce nvim_exec2() and deprecate nvim_exec().
* feat(lsp): render markdown in docs hover #22766Roberto Pommella Alegro2023-03-25
| | | | | | | | | | | 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>
* fix(lsp): add missing silent check in lsp hover handler (#22763)Micah Halter2023-03-25
| | | Fixup to #21531.
* docs: more details about vim.region (#21116)Jakub Łuczyński2023-03-25
|
* fix(treesitter): add missing deprecateLewis Russell2023-03-24
|
* feat(treesitter)!: deprecate top level indexes to modules (#22761)Lewis Russell2023-03-24
| | | | | | | | | | | | | | | | | The following top level Treesitter functions have been moved: - vim.treesitter.inspect_language() -> vim.treesitter.language.inspect() - vim.treesitter.get_query_files() -> vim.treesitter.query.get_files() - vim.treesitter.set_query() -> vim.treesitter.query.set() - vim.treesitter.query.set_query() -> vim.treesitter.query.set() - vim.treesitter.get_query() -> vim.treesitter.query.get() - vim.treesitter.query.get_query() -> vim.treesitter.query.get() - vim.treesitter.parse_query() -> vim.treesitter.query.parse() - vim.treesitter.query.parse_query() -> vim.treesitter.query.parse() - vim.treesitter.add_predicate() -> vim.treesitter.query.add_predicate() - vim.treesitter.add_directive() -> vim.treesitter.query.add_directive() - vim.treesitter.list_predicates() -> vim.treesitter.query.list_predicates() - vim.treesitter.list_directives() -> vim.treesitter.query.list_directives() - vim.treesitter.query.get_range() -> vim.treesitter.get_range() - vim.treesitter.query.get_node_text() -> vim.treesitter.get_node_text()
* vim-patch:9.0.1425: "wat" and "wast" files are one filetype (#22774)Christian Clason2023-03-24
| | | | | | | | | Problem: "wat" and "wast" files are one filetype. Solution: Add a separate filetype for "wat" files. (Amaan Qureshi, closes vim/vim#12165) https://github.com/vim/vim/commit/3ea62381c527395ae701715335776f427d22eb7b Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
* fix(treesitter): annotationsLewis Russell2023-03-23
| | | | | | - Begin using `@package` in place of `@private` for functions that are accessed internally but outside their defined class. - Rename Node -> TSP.Node
* feat(api): add nvim_get_hl (#22693)Null Chilly2023-03-23
| | | | | Problem: no way of getting all highlight group definitions in a namespace. Solution: add `nvim_get_hl()`, deprecate `nvim_get_hl_by_name()` and `nvim_get_hl_by_id()`.
* fix(lsp): Jump to tag locations reliably when :ltag is used (#22750)meredith2023-03-23
|
* Merge #22736 from justinmk/gsplitJustin M. Keyes2023-03-22
|\ | | | | feat(vim.gsplit): gain features of vim.split
| * refactor(vim.gsplit): remove "keepsep"Justin M. Keyes2023-03-22
| | | | | | | | string.gmatch() is superior, use that instead.