| Commit message (Collapse) | Author | Age |
|
|
|
|
| |
This will solve the "implicit declaration of function ‘assert’" warning
when running "make lint".
|
|\ |
|
|/
|
|
|
| |
This will prevent future errors whenever support for a specific python
version we rely on is removed.
|
|
|
|
|
| |
Problem: Various file types not recognized.
Solution: Add patterns to recognize more file types (closes vim/vim#9607)
https://github.com/vim/vim/commit/428058ab3213e81531cbd7989f4267870f35d52e
|
|\
| |
| | |
feat(--headless): do not print anything when stdioopen() has been used
|
| |
| |
| |
| |
| |
| |
| | |
This commit adds an on_print callback to stdioopen's dictionary
argument which lets the caller specify a function called each time
neovim will try to output something to stdout (e.g. on "echo" or
"echoerr" in --headless mode).
|
|\ \
| | |
| | | |
Various Coverity fixes
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
Since we already have a typval, we know the lookup will succeed.
|
| | |
| | |
| | |
| | | |
Since we already have a typval, we know the lookup will succeed.
|
|\ \ \
| | | |
| | | | |
vim-patch:8.2.{3584,3586,3587}: :command "-keepscript" argument
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Problem: Compiler test fails with backslash file separator.
Solution: Accept slash and backslash.
https://github.com/vim/vim/commit/0a15c7676bccb0c9483579106318e785c6e40a7f
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Problem: Command completion test fails.
Solution: Add new argument to expected output
https://github.com/vim/vim/commit/326e7da609a1b115b0ed535e89e970afebe99e35
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Problem: "verbose set efm" reports the location of the :compiler command.
(Gary Johnson)
Solution: Add the "-keepscript" argument to :command and use it when
defining CompilerSet.
https://github.com/vim/vim/commit/58ef8a31d7087d495ab1582be5b7a22796ac2451
|
|\ \ \ \
| | | | |
| | | | | |
fix(input): put modifiers back into typeahead buffer when needed
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Update runtime files
https://github.com/vim/vim/commit/6f4754b9f7253d7e4ba527064a24aff1acdb1e8f
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Problem: Not all gitconfig files are recognized.
Solution: Add a few more patterns. (Tim Pope, closes vim/vim#9597)
https://github.com/vim/vim/commit/bcfa11b7dfdfbb4d412dd843a6da3fce68ba2e39
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Problem: json5 files are not recognized.
Solution: Add a pattern for json5 files. (closes vim/vim#9601)
https://github.com/vim/vim/commit/e15ebeffb35da4bb7d9054358671735ce6988c28
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
Problem: Gnuplot file not recognized.
Solution: Recognize ".gnuplot". (closes vim/vim#9588)
https://github.com/vim/vim/commit/ff5cbe8133c6eb5dd86b9e042f32f589627e9bf9
|
|\ \ \ \
| | | | |
| | | | | |
build(deps): bump tree-sitter to v0.20.3
|
|/ / / /
| | | |
| | | |
| | | |
| | | | |
this version contains massive performance improvements as well as a new
`--abi` flag that allows generating backward compatible parsers
|
|\ \ \ \
| | | | |
| | | | | |
input: never escape CSI bytes and clean up related names and comments
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
CSI typed directly is now just <CSI>. The <xCSI> key is obsolete.
|
| |/ / / |
|
|\ \ \ \
| | | | |
| | | | | |
feat(api): expose extmark more details
|
| | | | | |
|
| |/ / /
|/| | |
| | | |
| | | |
| | | | |
Problem: Filetype detection for BASIC is not optimal.
Solution: Improve BASIC filetype detection. (Doug Kearns)
https://github.com/vim/vim/commit/6517f14165cdebf83a07ab9d4aeeb102b4e16e92
|
| | | | |
|
| |/ /
|/| | |
|
| | |
| | |
| | |
| | | |
The first parameter to eq() should be the expected value, and the second
parameter should be the actual value.
|
|\ \ \
| | | |
| | | | |
build(deps): bump tree-sitter
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
update tree-sitter to
https://github.com/tree-sitter/tree-sitter/commit/2346570901ef01517dad3e4a944a36d7b7237e4f
which includes a massive performance improvement to query construction
(bumping ABI compatibility to 14; parsers need to be generated with a
flag to take advantage of this)
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This is a follow-on to #17040. The real benefit of #17040 was ensuring
that the ftplugin FileType autocommand was defined first and thus always
fired first. A side effect of the implementation in #17040 was that
setting variables that modified the state of filetype detection (such as
g:did_load_filetypes or g:do_filetype_lua) could no longer be set in the
user's init file. Filetype detection can also no longer be prevented
from loading by using `:filetype off`.
This PR addresses both of those side effects by unconditionally sourcing
ftplugin.vim and indent.vim before the user's init file (which ensures
that these autocommands run first) and sourcing filetype.vim *after* the
user's init file (thus allowing it to be blocked or modified).
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
When `man -w` is called with an empty string as section name, it may
fail with an error code, which causes :Man to no longer work without a
section. Just remove that argument when no section is specified.
|
|\ \ \
| | | |
| | | | |
docs: regenerate
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
ci: create automated PRs as draft PRs
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
GH workflows aren't allowed to trigger other GH workflows. Since
commitlint is a required check now, we need something manual to happen
for it to run on vim-patch/api-doc PRs.
Creating these PRs as drafts and then marking them as "ready to review"
when we want to merge them will provide the manual trigger to run
commitlint.
[skip ci]
|
|\ \ \
| | | |
| | | | |
ci: remove non-working add-reviewer job
|
| | | | |
|
|\ \ \ \
| |/ / /
|/| | | |
Always run commitlint check
|
| | | | |
|
|/ / / |
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
(#17118)
This commits introduces two performance improvements in incremental sync:
* avoiding expensive lua string reallocations on each on_lines call by requesting
only the changed chunk of the buffer as reported by firstline and new_lastline
parameters of on_lines
* re-using already allocated tables for storing the resulting lines to reduce the load on
the garbage collector
The majority of the performance improvement is from requesting only changed chunks
of the buffer.
Benchmark:
The following code measures the time required to perform a buffer edit to
that operates individually on each line, common to plugins such as vim-commentary.
set rtp+=~/.config/nvim/plugged/nvim-lspconfig
set rtp+=~/.config/nvim/plugged/vim-commentary
lua require('lspconfig')['ccls'].setup({})
function! Benchmark(tries) abort
let results_comment = []
let results_undo = []
for i in range(a:tries)
echo printf('run %d', i+1)
let begin = reltime()
normal gggcG
call add(results_comment, reltimefloat(reltime(begin)))
let begin = reltime()
silent! undo
call add(results_undo, reltimefloat(reltime(begin)))
redraw
endfor
let avg_comment = 0.0
let avg_undo = 0.0
for i in range(a:tries)
echomsg printf('run %3d: comment=%fs undo=%fs', i+1, results_comment[i], results_undo[i])
let avg_comment += results_comment[i]
let avg_undo += results_undo[i]
endfor
echomsg printf('average: comment=%fs undo=%fs', avg_comment / a:tries, avg_undo / a:tries)
endfunction
command! -bar Benchmark call Benchmark(10)
All text changes will be recorded within a single undo operation. Both the
comment operation itself and the undo operation will generate an on_lines event
for each changed line. Formatter plugins using setline() have also been found
to exhibit the same problem (neoformat, :RustFmt in rust.vim), as this function
too generates an on_lines event for every line it changes.
Using the neovim codebase as an example (commit 2ecf0a4)
with neovim itself built at 2ecf0a4 with
CMAKE_BUILD_TYPE=Release shows the following performance improvement:
src/nvim/lua/executor.c, 1432 lines:
- baseline, no optimizations: comment=0.540587s undo=0.440249s
- without double-buffering optimization: comment=0.183314s undo=0.060663s
- all optimizations in this commit: comment=0.174850s undo=0.052789s
src/nvim/search.c, 5467 lines:
- baseline, no optimizations: comment=7.420446s undo=7.656624s
- without double-buffering optimization: comment=0.889048s undo=0.486026s
- all optimizations in this commit: comment=0.662899s undo=0.243628s
src/nvim/eval.c, 11355 lines:
- baseline, no optimizations: comment=41.775695s undo=44.583374s
- without double-buffering optimization: comment=3.643933s undo=2.817158s
- all optimizations in this commit: comment=1.510886s undo=0.707928s
Co-authored-by: Dmytro Meleshko <dmytro.meleshko@gmail.com>
|
| | |
| | |
| | |
| | | |
Update runtime files
https://github.com/vim/vim/commit/fd31be29b8220ee1cb0b3460c82f2634ae3cc370
|