aboutsummaryrefslogtreecommitdiff
path: root/src
Commit message (Collapse)AuthorAge
...
| * | | | | fix(line continuation): set growsize to correct value (#17655)Sean Dewar2022-03-08
| | | | | | | | | | | | | | | | | | Using MAX always sets growsize to 8000, unless ga_len is larger...
| * | | | | fix: do not pass aucmd to the callback (#17650)TJ DeVries2022-03-08
| | | | | |
| * | | | | chore(aucmd): remove left-over debug log (#17649)Christian Clason2022-03-08
| | | | | |
| * | | | | feat(api): autocmd `group` can be either name or id (#17559)Dhruv Manilawala2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(api): `group` can be either string or int This affects the following API functions: - `vim.api.nvim_create_autocmd` - `vim.api.nvim_get_autocmds` - `vim.api.nvim_do_autocmd` closes #17552 * refactor: add two maps for fast lookups * fix: delete augroup info from id->name map When in "stupid_legacy_mode", the value in name->id map would be updated to `AUGROUP_DELETED`, but the entry would still remain in id->name. This would create a problem in `augroup_name` function which would return the name of the augroup instead of `--DELETED--`. The id->name map is only used for fast loopup in `augroup_name` function so there's no point in keeping the entry of deleted augroup in it. Co-authored-by: TJ DeVries <devries.timothyj@gmail.com>
| * | | | | vim-patch:8.2.4520: using wrong highlight for cursor line numberzeertzjq2022-03-08
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using wrong highlight for cursor line number. Solution: Take filler lines into account when using CursorLineNr. (closes vim/vim#9897) https://github.com/vim/vim/commit/127969cf98000a760826ca3a0f3781a8b79522f1
| * | | | | fix(lua): don't use nlua_error when exiting earlybfredl2022-03-07
| | |/ / / | |/| | | | | | | | | | | | | Screen state is not initialized yet. Print directly to stderr instead.
| * | | | Merge pull request #17621 from bfredl/luaindexbfredl2022-03-07
| |\ \ \ \ | | | | | | | | | | | | refactor(lua): make vim submodule lazy loading declarative
| | * | | | refactor(lua): make vim submodule lazy loading declarativebfredl2022-03-07
| | |/ / / | | | | | | | | | | | | | | | | | | | | This will allow us to also use the same logic for lua threads and processes, later.
| * | | | Merge pull request #17630 from kchibisov/fix-underline-regressionJames McCoy2022-03-06
| |\ \ \ \ | | | | | | | | | | | | fix(api): highlight attribute for underline
| | * | | | fix(api): highlight attribute for underlineKirill Chibisov2022-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit fixes regression introduced in c365de1 when checking for highlight attribute for underline was returning '0' when it was present Fixes #17624.
| * | | | | vim-patch:8.2.4513: window-local directory is not applied if 'acd' failszeertzjq2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Window-local directory is not applied if 'acd' fails. Solution: Don't call do_autochdir(). (closes vim/vim#9891) https://github.com/vim/vim/commit/b29ae159777028bb3266835b55716749ab0515be
| * | | | | vim-patch:8.2.4060: win_execute() slow on systems where getcwd()/chdir() is slowzeertzjq2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: win_execute() is slow on systems where getcwd() or chdir() is slow. (Rick Howe) Solution: Avoid using getcwd() and chdir() if no local directory is used and 'acd' is not set. (closes vim/vim#9504) https://github.com/vim/vim/commit/d6f27c66cca32b93fcf8024b1bad1618946bbbea
| * | | | | vim-patch:8.2.3920: restoring directory after using another window is ↵zeertzjq2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | inefficient Problem: Restoring directory after using another window is inefficient. Solution: Only restore the directory for win_execute(). Apply 'autochdir' only when needed. https://github.com/vim/vim/commit/90c317f2246a7fb4bd4e3feb0778b53627bc9fad
| * | | | | vim-patch:8.2.3745: autochdir test fails without the +channel featurezeertzjq2022-03-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Autochdir test fails without the +channel feature. Solution: Remove the ch_logfile() call. (Dominique Pellé, closes vim/vim#9281) https://github.com/vim/vim/commit/f661cee847d2c17652b0ad0d703d2e3ac8610265
| * | | | | vim-patch:8.2.3739: in wrong directory when using win_execute() with 'acd' setzeertzjq2022-03-07
| | |/ / / | |/| | | | | | | | | | | | | | | | | | | | | | | Problem: In wrong directory when using win_execute() with 'acd' set. Solution: Restore the directory when returning to the window. (closes vim/vim#9276) https://github.com/vim/vim/commit/dea4a616376c6500894c16e26057ce16d7ef9f0e
| * | | | refactor(signcol): smarter invalidation (#17533)Lewis Russell2022-03-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously b_signcols was invalidated whenever a sign was added/removed or when a buffer line was added/removed. This change introduces a sentinel linenr_T into the buffer state which is a line number used to determine the signcolumn. With this information, we can invalidate the signcolumn less often. Now the signcolumn is only invalidated when a sign or line at the sentinel line number is removed.
| * | | | feat(api): add 'buffer' argument to nvim_get_autocmds (#17594)Gregory Anders2022-03-06
| |/ / / | | | | | | | | | | | | | | | | This enables retrieving autocommands defined in the given buffers. Under the hood this simply translates the buffer numbers into '<buffer=%d>' patterns.
| * | | Merge pull request #16897 from lewis6991/signsbfredl2022-03-06
| |\ \ \ | | | | | | | | | | feat(decorations): support signs
| | * | | feat(decorations): support signsLewis Russell2022-03-05
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Add the following options to extmarks: - sign_text - sign_hl_group - number_hl_group - line_hl_group - cursorline_hl_group Note: ranges are unsupported and decorations are only applied to start_row
| * | | | Merge pull request #17589 from kchibisov/add-dashed-dotted-underlineJames McCoy2022-03-05
| |\ \ \ \ | | | | | | | | | | | | Add support for double, dashed, and dotted underlines
| | * | | | fix: bounds check for underdotKirill Chibisov2022-03-05
| | | | | |
| | * | | | feat(tui): add support for `CSI 4 : [2,4,5] m`Kirill Chibisov2022-03-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit finishes support for colored and styled underlines adding `CSI 4 : [2,4,5] m` support providing double, dashed, and dotted underlines Fixes #17362.
| * | | | | Merge pull request #17538 from dundargoc/refactor/bugprone-signed-char-misusebfredl2022-03-05
| |\ \ \ \ \ | | | | | | | | | | | | | | refactor: fix clang-tidy bugprone-signed-char-misuse warnings
| | * | | | | refactor: fix clang-tidy bugprone-signed-char-misuse warningsDundar Göc2022-03-04
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | Prefer to declare variables with correct type instead of explicit casts wherever possible.
| * / | | | refactor(lua): move only runtime lua file in src/ to runtime/luabfredl2022-03-04
| |/ / / / | | | | | | | | | | | | | | | reorganize so that initialization is done in lua
| * | | | chore(autocmd): move comment to the right placezeertzjq2022-03-04
| | | | |
| * | | | fix(autocmd): clean up autocmds only when needed (#17593)Jaehwang Jung2022-03-04
| | | | |
| * | | | Merge pull request #17567 from bfredl/preloadbfredl2022-03-03
| |\ \ \ \ | | | | | | | | | | | | refactor(lua): regularize builtin modules, phase 1
| | * | | | refactor(lua): reorganize builtin modules, phase 1bfredl2022-03-03
| | |/ / /
| * | | | Merge pull request #17568 from groves/respect_os_proc_children_rvJames McCoy2022-03-03
| |\ \ \ \
| | * | | | fix: respect os_proc_children rv of pid not foundCharlie Groves2022-03-01
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | os_proc_children returns 2 if there's a failure in the underlying syscall. Only shell out to pgrep in that case. It returns 1 if the pid isn't found. In that case, we can roll forward with returning an empty list.
| * | | | | Merge pull request #17591 from zeertzjq/vim-8.2.4498zeertzjq2022-03-03
| |\ \ \ \ \ | | | | | | | | | | | | | | vim-patch:8.2.4498: using <Plug> with "noremap" does not work
| | * | | | | vim-patch:8.2.4498: using <Plug> with "noremap" does not workzeertzjq2022-03-03
| | | |/ / / | | |/| | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Using <Plug> with "noremap" does not work. Solution: Always remap <Plug>. (closes vim/vim#9879, closes vim/vim#9789) https://github.com/vim/vim/commit/1fc34225acbee5ddca2b9ec3f82b3014d385b7f8
| * / | | | refactor(autocmd): simplify check for freed callbackbfredl2022-03-03
| |/ / / / | | | | | | | | | | | | | | | When a callback is freed the type is always set to kCallbackNone.
| * | | | test(old): add more missing test files and run more tests alonezeertzjq2022-03-03
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Copy four files from Vim v8.2.1432. Try to match Vim's test_alot.vim. This marks Vim patch 8.2.0164 as ported: vim-patch:8.2.0164: test_alot takes too long Problem: Test_alot takes too long. Solution: Run several tests individually. https://github.com/vim/vim/commit/842931cd7af37ea95e826b7a93a5d5587d18c9bb
| * | | | Merge pull request #17571 from zeertzjq/pvs-autocmdzeertzjq2022-03-03
| |\ \ \ \ | | | | | | | | | | | | Some clang and PVS fixes
| | * | | | refactor(clang): dead assignment buflocal_nr = 0zeertzjq2022-03-02
| | | | | |
| | * | | | refactor(PVS/V547): aucmd.type == CALLABLE_NONE is always falsezeertzjq2022-03-02
| | | | | |
| | * | | | refactor(PVS/V560): ap == NULL is always falsezeertzjq2022-03-02
| | | | | |
| * | | | | fix(pty_process_win/wait_eof_timer_cb): also check for proc->out.did_eofzeertzjq2022-03-02
| |/ / / /
| * / / / chore(PVS): add PVS header to api/autocmd.czeertzjq2022-03-02
| |/ / /
| * | | fix: enable filetype detection and syntax highlighting with --clean (#17566)Gregory Anders2022-03-01
| | | | | | | | | | | | | | | | | | | | --clean is supposed to emulate a "fresh install" and since Neovim enables filetype detection and syntax highlighting by default, these should be enabled when using --clean as well.
| * | | Merge pull request #17556 from zeertzjq/remove-unused-k-aucmd-specialbfredl2022-03-01
| |\ \ \ | | | | | | | | | | refactor: remove unused K_AUCMD_SPECIAL
| | * | | refactor: remove unused K_AUCMD_SPECIALzeertzjq2022-03-01
| | | | |
| * | | | Merge pull request #15079 from shadmansaleh/feat/verbose_luabfredl2022-03-01
| |\ \ \ \ | | | | | | | | | | | | feat(lua): add :verbose support for lua config
| | * | | | fix: anonymous sid not workingshadmansaleh2022-02-28
| | | | | |
| | * | | | feat(lua): show proper verbose output for lua configurationshadmansaleh2022-02-28
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | `:verbose` didn't work properly with lua configs (For example: options or keymaps are set from lua, just say that they were set from lua, doesn't say where they were set at. This fixes that issue. Now `:verbose` will provide filename and line no when option/keymap is set from lua. Changes: - compiles lua/vim/keymap.lua as vim/keymap.lua - When souring a lua file current_sctx.sc_sid is set to SID_LUA - Moved finding scripts SID out of `do_source()` to `get_current_script_id()`. So it can be reused for lua files. - Added new function `nlua_get_sctx` that extracts current lua scripts name and line no with debug library. And creates a sctx for it. NOTE: This function ignores C functions and blacklist which currently contains only vim/_meta.lua so vim.o/opt wrappers aren't targeted. - Added function `nlua_set_sctx` that changes provided sctx to current lua scripts sctx if a lua file is being executed. - Added tests in tests/functional/lua/verbose_spec.lua - add primary support for additional types (:autocmd, :function, :syntax) to lua verbose Note: These can't yet be directly set from lua but once that's possible :verbose should work for them hopefully :D - add :verbose support for nvim_exec & nvim_command within lua Currently auto commands/commands/functions ... can only be defined by nvim_exec/nvim_command this adds support for them. Means if those Are defined within lua with vim.cmd/nvim_exec :verbose will show their location . Though note it'll show the line no on which nvim_exec call was made.
| * | | | | fix(api): include event in get_autocmds (#17553)Christian Clason2022-03-01
| | |/ / / | |/| | |
| * | | | feat(lua): add missing changes to autocmds lost in the rebaseTJ DeVries2022-02-28
| | | | | | | | | | | | | | | | | | | | Note: some of these changes are breaking, like change of API signatures
| * | | | Merge pull request #17529 from seandewar/api-string-oopsiebfredl2022-02-28
| |\ \ \ \ | | |/ / / | |/| | | fix(api): convert blob to NUL-terminated API string