summaryrefslogtreecommitdiffstatshomepage
path: root/runtime/lua/vim/_editor.lua
AgeCommit message (Collapse)AuthorFiles
2022-11-06fix(paste): feed keys as typed in cmdline modezeertzjq1
(cherry picked from commit c12add7dfa8ffc503bf2cd6614fee436bcdae794)
2022-10-12[Backport release-0.8] doc (#20616)github-actions[bot]1
docs: various - increase python line-length limit from 88 => 100. - gen_help_html: fix bug in "tag" case (tbl_count => tbl_contains) ref #15632 fix #18215 fix #18479 fix #20527 fix #20532 Co-authored-by: Ben Weedon <ben@weedon.email> (cherry picked from commit f37cd2bb15df24e675b4a98b9f2803f1984ee361) Co-authored-by: Justin M. Keyes <justinkz@gmail.com>
2022-09-25fix(docs): invalid :help links #20345Justin M. Keyes1
Fix those naughty single quotes. closes #20159
2022-08-03docs: fix typos (#19588)dundargoc1
Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: notomo <notomo.motono@gmail.com>
2022-07-20feat(lua): allow vim.cmd to be indexed (#19238)Lewis Russell1
2022-07-17fix(lua): double entries in :lua completion #19410ii141
`:lua vim.ls<tab>` would list `lsp` twice.
2022-07-17feat(defaults): mouse=nvi #19290matveyt1
Problem: Since right-click can now show a popup menu, we can provide messaging to guide users who expect 'mouse' to be disabled by default. So 'mouse' can now be enabled by default. Solution: Do it. Closes #15521
2022-07-07refactor(lua): reformat with stylua 0.14.0 (#19264)Christian Clason1
* reformat Lua runtime to make lint CI pass * reduce max line length to 100
2022-06-15fix(lua): highlight.on_yank can close timer in twice #18976notomo1
Steps to reproduce: 1. setting `vim.highlight.on_yank` ``` vim.api.nvim_create_autocmd({ "TextYankPost" }, { pattern = { "*" }, callback = function() vim.highlight.on_yank({ timeout = 200 }) end, }) ``` 2. repeat typing `yeye` ... 3. causes the following error. ``` Error executing vim.schedule lua callback: vim/_editor.lua:0: handle 0x01e96970 is already closing stack traceback: [C]: in function 'close' vim/_editor.lua: in function '' vim/_editor.lua: in function <vim/_editor.lua:0> ``` 📝 Test result before fix: [----------] Global test environment setup. [----------] Running tests from test/functional/lua/highlight_spec.lua [ RUN ] vim.highlight.on_yank does not show errors even if buffer is wiped before timeout: 15.07 ms OK [ RUN ] vim.highlight.on_yank does not show errors even if executed between timeout and clearing highlight: 15.07 ms ERR test/helpers.lua:73: Expected objects to be the same. Passed in: (string) 'Error executing vim.schedule lua callback: vim/_editor.lua:0: handle 0x02025260 is already closing stack traceback: [C]: in function 'close' vim/_editor.lua: in function '' vim/_editor.lua: in function <vim/_editor.lua:0>' Expected: (string) ''
2022-05-31feat(fs): add vim.fs.parents()Gregory Anders1
vim.fs.parents() is a Lua iterator that returns the next parent directory of the given file or directory on each iteration.
2022-05-31refactor(checkhealth)!: rename to vim.health, move logic to Lua #18720Javier Lopez1
- Complete function: There was lots of unnecessary C code for the complete function, therefore moving it to Lua and use all the plumbing we have in place to retrieve the results. - Moving the module: It's important we keep nvim lua modules name spaced, avoids conflict with plugins, luarocks, etc.
2022-05-17Merge pull request #18554 from kevinhwang91/perf-timerstartbfredl1
perf(_editor): no need to stop inside vim.defer_fn
2022-05-15feat(lua): add traceback to vim.deprecate #18575ii141
2022-05-13perf(_editor): no need to stop inside vim.defer_fnkevinhwang911
uv_run: 1. remove timer handle from heap 2. will start again if repeat is not 0
2022-05-12feat(lua): vim.cmd() with kwargs acts like nvim_cmd() #18523Famiu Haque1
2022-05-09chore: format runtime with styluaChristian Clason1
2022-05-03feat(lsp): add logging level "OFF" (#18379)ii141
2022-05-03feat(lua): vim.deprecate() #18320dundargoc1
This is primarily intended to act as documentation for the developer so they know exactly when and what to remove. This will help prevent the situation of deprecated code lingering for far too long as developers don't have to worry if a function is safe to remove.
2022-04-17fix(paste): ignore mappings in Cmdline mode (#18114)Eden Zhang1
2022-03-15fix(paste): escape control characters in Cmdline modezeertzjq1
2022-03-15fix(paste): deal with trailing new line in chunkzeertzjq1
2022-03-15fix(paste): avoid edges cases caused by empty chunkzeertzjq1
2022-03-15refactor(paste): do not print dots in cmdline modezeertzjq1
2022-03-15fix(paste): deal with eol and eof in Visual modezeertzjq1
2022-03-15fix(paste): don't move cursor past the end of pasted text in Normal modezeertzjq1
2022-03-15fix(paste): use getcmdtype() to determine whether in cmdline modezeertzjq1
2022-03-11fix(remote): respect silent in error reportingCharlie Groves1
2022-03-11fix(remote): report on missing wait commands, typecheck lua resultsCharlie Groves1
Clean up lint errors, too
2022-03-11test(remote): add tests for --remoteCharlie Groves1
This also fixes a fair number of issues found in running the tests
2022-03-11feat(remote): add basic --remote supportCharlie Groves1
This is starting from @geekodour's work at https://github.com/neovim/neovim/pull/8326
2022-03-09feat(lua): handle lazy submodules in `:lua vim.` wildmenu completionbfredl1
2022-03-07refactor(lua): make vim submodule lazy loading declarativebfredl1
This will allow us to also use the same logic for lua threads and processes, later.
2022-03-06docs(lua): reference runtime/lua/vim/_editor.luazeertzjq1
2022-03-04refactor(lua): move only runtime lua file in src/ to runtime/luabfredl1
reorganize so that initialization is done in lua