Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | Merge pull request #13482 from dm1try/propagate_lua_file_loading_errors | Björn Linse | 2020-12-10 |
|\ | | | | | runtime: propagate lua parsing errors while using "require" | ||
| * | runtime: propagate lua parsing errors while using "require" | dm1try | 2020-12-10 |
| | | |||
* | | Merge pull request #13450 from nvim-treesitter/fix-unknown-language-parser | Thomas Vigouroux | 2020-12-10 |
|\ \ | |/ |/| | fix(treesitter): don't throw an error for missing injected langs | ||
| * | fix(treesitter): don't throw an error for missing injected langs | Steven Sojka | 2020-12-04 |
| | | |||
* | | fix(treesitter): incorrect method name call | Steven Sojka | 2020-12-04 |
|/ | |||
* | fix(treesitter): allow ranges in set_included_ranges | Thomas Vigouroux | 2020-11-23 |
| | |||
* | feat(treesitter): add language tree | Steven Sojka | 2020-11-23 |
| | | | | | | | | | | | | | Implement the LanguageTree structure to enable language injection. This is done be removing the old Parser metatable and replacing by the new structure, with the same API (almost). Some noticeable differences : - `parser:parse()` now returns a table of trees - There is no incremental parsing for child (injected) languages Co-authored-by: Thomas Vigouroux <tomvig38@gmail.com> | ||
* | lua: make vim.inspect available early so it can be used for path debugging | Björn Linse | 2020-11-05 |
| | |||
* | tree-sitter: ignore some tests on windows | Thomas Vigouroux | 2020-11-03 |
| | | | | | Weirdl this test is failing, but can't reproduce locally, this is an unnecessary blocker for this PR. | ||
* | fixup! startup: handle autoload and lua packages during startup | Jan Edmund Lazo | 2020-11-02 |
| | |||
* | startup: handle autoload and lua packages during startup | Björn Linse | 2020-11-02 |
| | | | | ¡NO HAY BANDA! | ||
* | treesitter: add node:id() | Björn Linse | 2020-11-01 |
| | |||
* | Merge pull request #12053 from tjdevries/tjdevries/nicer_validate | TJ DeVries | 2020-10-17 |
|\ | | | | | vim.validate(): include stacktrace in message | ||
| * | test/vim.validate(): assert normalized stacktrace | Justin M. Keyes | 2020-10-05 |
| | | | | | | | | | | | | | | - The previous commit lost information in the tests. Instead, add some more "normalization" substitutions in pcall_err(), so that the general shape of the stacktrace is included in the asserted text. - Eliminate contains(), it is redundant with matches() | ||
| * | vim.validate(): include stacktrace in message | TJ DeVries | 2020-10-05 |
| | | |||
* | | treesitter: allow custom parser for highlighter | Thomas Vigouroux | 2020-10-12 |
| | | | | | | | | | | | | | | | | | | | | | | Also allow to get parser ranges. This will be useful for language injection, allowing us to tweak the parser's ranges on the fly. Update runtime/lua/vim/treesitter.lua Co-authored-by: Paul Burlumi <paul@burlumi.com> | ||
* | | treesitter: runtime queries | Thomas Vigouroux | 2020-10-11 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | Runtime queries just work like ftplugins, that is: - Queries in the `after` directory are sourced _after_ the "base" query - Otherwise, the last define query takes precedence. Queries can be found in the `queries` directory. Update runtime/lua/vim/treesitter/query.lua Co-authored-by: Paul Burlumi <paul@burlumi.com> | ||
* | | api: multiple decoration providers at once | Björn Linse | 2020-10-10 |
| | | |||
* | | lua: vim.wait allows control of fast events (#13053) | TJ DeVries | 2020-10-06 |
|/ | | | | | | | | | * lua: vim.wait allows control of fast events * fixup: remove requirement of function for easier waiting * fixup: lint * fixup: bfredl comments | ||
* | Fix byte updates for blockwise paste at buffer end | KillTheMule | 2020-09-30 |
| | |||
* | bytetrack: add blockwise paste test | Thomas Vigouroux | 2020-09-30 |
| | |||
* | Fix buffer_updates on blockwise paste | KillTheMule | 2020-09-30 |
| | | | | Fixes #12718. | ||
* | treesitter: add string parser (#13008) | Thomas Vigouroux | 2020-09-30 |
| | |||
* | test: buffer updates: add visual charwise paste test | Björn Linse | 2020-09-19 |
| | |||
* | buffer updates: fix issues with "change" operator | Björn Linse | 2020-09-19 |
| | |||
* | tests: lua buffer updates: reorg check_events() | Björn Linse | 2020-09-19 |
| | |||
* | buf_updates: fix wrong updates on linewise change | Thomas Vigouroux | 2020-09-18 |
| | |||
* | buf_updates: fix updates for empty buffers (#12926) | Thomas Vigouroux | 2020-09-17 |
| | | | On empty buffers, when editing the first line, the line is buffered, causing offset to be < 0. While the buffer is not actually empty, the buffered line has not been flushed (and should not be) yet, so the call is valid but an edge case. | ||
* | treesitter: filter updates on <CR> | Thomas Vigouroux | 2020-09-16 |
| | | | | | This fixes an error when fo=ro, when hitting <CR> to insert a new comment line. | ||
* | buf_attach: fix buffer updates with setline() | Björn Linse | 2020-09-16 |
| | |||
* | api: add nvim_buf_call to call function with curbuf changed to buffer | Björn Linse | 2020-09-13 |
| | |||
* | fix: use luahl in treesitter | Thomas Vigouroux | 2020-09-13 |
| | |||
* | fix(bufupdates): avoid sending empty updates | Thomas Vigouroux | 2020-09-11 |
| | |||
* | fix(bytetrack): send correct events when opening lines | Thomas Vigouroux | 2020-09-11 |
| | | | | | | | | | | | | a bit of test cleanup ärrår feeel SPLIT fix: sned correct updates on <CR> | ||
* | tests: disable hl glitch test for now, will be fixed in luahl (next PR) | Björn Linse | 2020-09-10 |
| | |||
* | fix lints | Thomas Vigouroux | 2020-09-09 |
| | |||
* | api/buffer: add "on_bytes" callback to nvim_buf_attach | Björn Linse | 2020-09-09 |
| | | | | | | This implements byte-resolution updates of buffer changes. Note: there is no promise that the buffer state is valid inside the callback! | ||
* | treesitter: revert wrong optimization in highlights | Thomas Vigouroux | 2020-09-09 |
| | |||
* | tests: update query.list_predicates() test | Björn Linse | 2020-09-06 |
| | |||
* | treesitter: Use excplicit names in tests | Thomas Vigouroux | 2020-09-06 |
| | |||
* | treesitter: allow to list supported predicates | Thomas Vigouroux | 2020-09-04 |
| | |||
* | Merge pull request #12814 from theHamsta/escape-queries | Thomas Vigouroux | 2020-09-01 |
|\ | | | | | treesitter: avoid escaping complete query strings | ||
| * | treesitter: avoid escaping complete query strings | Stephan Seitz | 2020-08-31 |
| | | | | | | | | | | Escape "\\" only for `vim-match?` not for `match?` Fixes #12595 | ||
* | | treesitter: add node:field() to get field children | Thomas Vigouroux | 2020-09-01 |
| | | |||
* | | treesitter: allow to iterate over node children | Thomas Vigouroux | 2020-08-31 |
|/ | |||
* | fix(win): ignore closing wins in win_findbuf #12798 | Thomas Vigouroux | 2020-08-31 |
| | | | | | This caused segfaults when calling win_findbuf in an `on_detach` callback, when the callback was triggered when closing the last window containing the buffer. | ||
* | lua: add vim.register_keystroke_callback (#12536) | TJ DeVries | 2020-08-14 |
| | | | | | | | | | | | | | | | * feat: Add vim.register_keystroke_callback * fixup: Forgot to remove mention of old option * fixup: Answer jamessan comments * fixup: Answer norcalli comments * fixup: portability * Update runtime/doc/lua.txt Co-authored-by: Ashkan Kiani <ashkan.k.kiani@gmail.com> | ||
* | treesitter: add and test vim-match? predicate | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: add contains? predicate | Thomas Vigouroux | 2020-08-13 |
| | |||
* | treesitter: refactor and use lua regexes | Thomas Vigouroux | 2020-08-13 |
| |