| Commit message (Collapse) | Author | Age |
... | |
|
|
|
|
| |
Resolve an issue with deferred clearing of highlight failing if the
buffer is deleted before the timeout by checking whether the
buffer is valid first.
|
|\
| |
| | |
Port VimL's method call syntax - vim-patch:8.1.{1638,1800,1803,1807,1809,1816,1820,1821,1828,1834,1835,1861,1863,1878,1879,1888,1909,1911,1912}
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
v:lua expressions are represented using vvlua_partial. As v:lua isn't
intended to be called directly, it's given an empty pt_name.
Because of this, calling v:lua directly like "v:lua()" will cause "E117:
Unknown function: ", with an empty name.
Instead, have call_func() show the name "v:lua" in the emsg.
|
| |
| |
| |
| |
| |
| | |
One step further towards stable tree-sitter.
Co-authored-by: Björn Linse <bjorn.linse@gmail.com>
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* feat(api): add lua C bindings for xdiff
* chore: opt.hunk_lines -> opt.result_type
opt.on_hunk now takes precedence over opt.result_type
* chore: fix indents
Fix indents
* chore: change how priv is managed
Assign priv NULL and unconditionally apply XFREE_CLEAR to it when
finished.
|
|
|
|
|
|
|
|
|
|
| |
An empty table was previously always treated as a list, which means that
while merging tables, whenever an empty table was encountered it would
always truncate any table on the left.
`vim.tbl_deep_extend("force", { b = { a = 1 } }, { b = {} })`
Before: `{ b = {} }`
After: `{ b = { a = 1 } }`
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
Options formatted as a list of comma-separated key-value pairs may have
values that contain leading and trailing whitespace characters. For
example, the `listchars` option has a default value of
`"tab:> ,trail:-,nbsp:+"`. When converting this value to a lua table,
leading and trailing whitespace should not be trimmed.
Co-authored-by: Robert Hrusecky <robert.hrusecky@utexas.edu>
|
|\
| |
| | |
An assortment of various vim.opt fixups.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
| |
| |
| |
| |
| |
| | |
This closes #14677, but I also am a little unsure if there are times
where this may not be correct. However, this just changes the behavior
that even if `was_set` was false, we still get for
`nvim_win_get_option`.
|
| | |
|
|\ \
| |/
|/| |
Extmarks: manually zero out `curbuf->deleted_bytes2` on substitute and join
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
|/
|
|
| |
* tests(runtime): move runtime/plugin tests to functional/lua/runtime_spec
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* lua: Add vim.opt
* fixup: cleaning
* fixup: comments
* ty clason
* fixup: comments
* this is the last commit. period.
|
|\
| |
| | |
fix(bufupdate): send events when inserting with virtualedit
|
| |
| |
| |
| |
| | |
Problem first raised
https://github.com/nvim-treesitter/nvim-treesitter/issues/1304
|
|/ |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Extmarks: remove `curbuf->deleted_bytes2` from `op_delete`
|
| | |
|
|/ |
|
|\
| |
| | |
extmark: splice extmarks on :luado
|
| | |
|
|\ \
| | |
| | | |
extmark: correct extmark_splice call with substitute and inccommand when replacing with escaped backslashes
|
| |/ |
|
|/ |
|
|\
| |
| | |
Extmarks: send correct buffer events on blockwise paste for nonuniform lines
|
| | |
|
|/ |
|
|\
| |
| | |
vim.fn: throw error when trying to use API function
|
| | |
|
| | |
|
|\ \
| | |
| | |
| | |
| | | |
New versions of neovim will not read undofiles written by nvim before this merge (there will be an error message about incopmatible version). Nvim 0.4 (or an master up to bda12927be84f0e0e05e885f9acb40a7ac2c5524 ) can be used to recover older undofiles, so if you worried about unsaved changes lurking around in undofiles it would make sense to keep such version around somewhere to recover them.
This is a necessary change to keep tree-sitter and plugins dependent on byte-level buffer change events fully working with undo states from a undofile. If there is a clear demand we might implement reading of the old format. Such recovered buffers will not be be fully functional with plugins relying on buffer updates or tree-sitter, however.
|