aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* build: remove pkgconfig-related code (#22422)dundargoc2023-02-26
| | | Cmake should already be able to find everything on its own.
* feat(treesitter): expand the APILewis Russell2023-02-26
|
* Merge pull request #22411 from zeertzjq/vim-9.0.1354zeertzjq2023-02-26
|\ | | | | vim-patch:9.0.{1354,1356}: "gr CTRL-G" stays in virtual replace mode
| * vim-patch:9.0.1356: cannot cancel "gr" with Esczeertzjq2023-02-26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Problem: Cannot cancel "gr" with Esc. Solution: Make "gr<Esc>" do nothing. (closes vim/vim#12064) https://github.com/vim/vim/commit/4f026ea9f1ad9db262f0dba522768c84e5ae37b4 N/A patches for version.c: vim-patch:9.0.1347: "gr CTRL-O" stays in Insert mode Problem: "gr CTRL-O" stays in Insert mode. (Pierre Ganty) Solution: Do not set restart_edit when "cmdchar" is 'v'. (closes vim/vim#12045) https://github.com/vim/vim/commit/2824d1ee325ea61855c26f77e7a4e095b9606720 vim-patch:9.0.1349: "gr" with a count fails Problem: "gr" with a count fails. Solution: Break out of the loop only after using the count. https://github.com/vim/vim/commit/3ddb1182b7b8d376e59b444f6b3e213f0dcd3417
| * vim-patch:9.0.1354: "gr CTRL-G" stays in virtual replace modezeertzjq2023-02-26
|/ | | | | | | | | | | Problem: "gr CTRL-G" stays in virtual replace mode. (Pierre Ganty) Solution: Prepend CTRL-V before control characters. (closes vim/vim#12045) https://github.com/vim/vim/commit/d6a4ea3aa0d3f4a886ea900e94bf4e8ca8ae8d63 Cherry-pick Test_edit_gr_special() from patch 9.0.1347. Co-authored-by: Bram Moolenaar <Bram@vim.org>
* Merge pull request #22417 from bfredl/antifreebfredl2023-02-26
|\ | | | | fix(build): fix invalid use of EXITFREE
| * fix(build): fix invalid use of EXITFREEbfredl2023-02-26
|/ | | | fixup 6942528 refactor(ui): ui_log() can now just be a function
* build: set libtermkey project language to C (#22410)dundargoc2023-02-26
| | | | This will prevent cmake from failing the build if a C++ compiler isn't found.
* Merge pull request #22408 from bfredl/ui_logbfredl2023-02-26
|\ | | | | refactor(ui): ui_log() can now just be a function
| * refactor(ui): ui_log() can now just be a functionbfredl2023-02-25
| |
* | fix(MSVC): set the active code page to utf-8 (#22384)dundargoc2023-02-26
|/ | | | | | | | Neovim expects character encoding to be UTF-8, and deviation from this causes bugs such as lua files not being recognized for non-ascii paths. This changes the behavior of fopen, which defaults to using the currently active codepage. Closes: https://github.com/neovim/neovim/issues/18122
* fix(lsp): fix some type annotations (#22397)Mathias Fußenegger2023-02-25
|
* ci(fix): repair regen-api-docs (#22403)Mathias Fußenegger2023-02-25
| | | | | | | https://github.com/neovim/neovim/pull/22398 broke the job because there is no `build/bin/nvim` This keeps the preference for `build/bin/nvim` but adds back `nvim` as fallback if it doesn't exist.
* docs: use build/bin/nvim instead of nvim in gen_vimdoc (#22398)Mathias Fußenegger2023-02-25
| | | | | | | | | | Problem: `nvim` could point to stable release missing the `nvim -l` functionality. Solution: Require to build nvim first and use `build/bin/nvim`
* Revert "feat(lsp): implement workspace/didChangeWatchedFiles (#21293)"Mathias Fussenegger2023-02-25
| | | | | | This reverts commit 5732aa706c639b3d775573d91d1139f24624629c. Causes editor to freeze in projects with many watcher registrations
* feat(lsp): implement workspace/didChangeWatchedFiles (#21293)Jon Huhn2023-02-25
|
* build: build luajit in parallel (#22327)dundargoc2023-02-24
| | | Add -j flag to the make command for luajit. Cuts down dependency build time by 40% when using the Ninja generator.
* vim-patch:9.0.1351: Dhall files are not recognized (#22393)Christian Clason2023-02-24
| | | | | | | | Problem: Dhall files are not recognized. Solution: Add patterns for Dhall files. (Amaan Qureshi, closes vim/vim#12052) https://github.com/vim/vim/commit/def5521752abefe12db8cc3111a3b205ad1ac929 Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
* vim-patch:9.0.1350: CPON files are not recognized (#22392)Christian Clason2023-02-24
| | | | | | | | Problem: CPON files are not recognized. Solution: Add patterns for CPON files. (Amaan Qureshi, closes vim/vim#12053) https://github.com/vim/vim/commit/c2254764bcada43eea894eb5852a26d5ac5ca8b0 Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
* refactor(lsp): remove deprecated code (#22389)Raphael2023-02-24
|
* refactor(PVS/V581): merge identical if statements (#22390)Mark Naughton2023-02-24
|
* feat(treesitter)!: remove silent option from language.add()Lewis Russell2023-02-24
| | | Simply use `pcall` if you want to silence an error.
* Merge pull request #22386 from zeertzjq/vim-8.2.2449zeertzjq2023-02-24
|\ | | | | vim-patch:8.2.{2449,4627,4629,4632}: flattennew(), flatten() fixes
| * vim-patch:8.2.4632: using freed memory in flatten()zeertzjq2023-02-24
| | | | | | | | | | | | | | | | | | Problem: Using freed memory in flatten(). Solution: Clear typval after recursing into list. https://github.com/vim/vim/commit/f3980dc5d0a5f873cf764b8ba3e567e42259e4e5 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * vim-patch:8.2.4629: flattennew() makes a deep copy unnecessarilyzeertzjq2023-02-24
| | | | | | | | | | | | | | | | | | Problem: flattennew() makes a deep copy unnecessarily. Solution: Use a shallow copy. (issue vim/vim#10012) https://github.com/vim/vim/commit/c6c1ec4da53db9d292fa3dd081c20123f8261178 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * vim-patch:8.2.4627: flatten() does not use maxdepth correctlyzeertzjq2023-02-24
| | | | | | | | | | | | | | | | | | Problem: flatten() does not use maxdepth correctly. Solution: Use a recursive implementation. (closes vim/vim#10020) https://github.com/vim/vim/commit/acf7d73a7f5cdd63b34de777a4ce5eb3e2ba0ab3 Co-authored-by: Bram Moolenaar <Bram@vim.org>
| * vim-patch:8.2.2449: Vim9: flatten() always changes the list typezeertzjq2023-02-24
|/ | | | | | | | | Problem: Vim9: flatten() always changes the list type. Solution: Disallow using flatten() and add flattennew(). https://github.com/vim/vim/commit/3b690069730805a147d45d92eaca4dc838272d1d Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:8.2.4318: various comment and indent mistakes, returning wrong ↵zeertzjq2023-02-24
| | | | | | | | | | | | | | | | | | | zero (#22385) Problem: Various comment and indent mistakes, returning wrong zero. Solution: Fix the mistakes. Return NULL instead of FAIL. https://github.com/vim/vim/commit/54969f4ef5825205ecde09ea80f4087fc3b68e5d N/A patches for version.c: vim-patch:8.2.3781: the option window script is outdated Problem: The option window script is outdated. Solution: Add several changes. https://github.com/vim/vim/commit/a416861c643b03fe5dec9f3bf8c1c9e054b5a9c7 Co-authored-by: Bram Moolenaar <Bram@vim.org>
* vim-patch:9.0.1348: Un-grammar files are not recognized (#22383)Amaan Qureshi2023-02-23
| | | | | | Problem: Un-grammar files are not recognized. Solution: Add patterns for Un-grammar files. (Amaan Qureshi, closes vim/vim#12034) https://github.com/vim/vim/commit/44e08c1cf83f5a50f8b21613551304a6651c1161
* fix(treesitter): fixup language invalidation (#22381)Lewis Russell2023-02-23
|
* feat(treesitter): upstream foldexpr from nvim-treesitterLewis Russell2023-02-23
|
* vim-patch:9.0.1346: Starlark files are not recognized (#22380)Christian Clason2023-02-23
| | | | | | | | Problem: Starlark files are not recognized. Solution: Add patterns for Starlark files. (Amaan Qureshi, closes vim/vim#12049) https://github.com/vim/vim/commit/ca06b30073de22dc120b532e90fbee2a10ef9772 Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
* perf(treesitter): smarter languagetree invalidationLewis Russell2023-02-23
| | | | | | | | | | | | | | Problem: Treesitter injections are slow because all injected trees are invalidated on every change. Solution: Implement smarter invalidation to avoid reparsing injected regions. - In on_bytes, try and update self._regions as best we can. This PR just offsets any regions after the change. - Add valid flags for each region in self._regions. - Call on_bytes recursively for all children. - We still need to run the query every time for the top level tree. I don't know how to avoid this. However, if the new injection ranges don't change, then we re-use the old trees and avoid reparsing children. This should result in roughly a 2-3x reduction in tree parsing when the comment injections are enabled.
* fix: resolve error from -Werror=maybe-uninitializedLewis Russell2023-02-23
|
* refactor(lsp): remove workaround for missing bit module (#22373)Mathias Fußenegger2023-02-23
|
* Merge pull request #22357 from clason/docs-tsChristian Clason2023-02-23
|\ | | | | | | * Work around tree-sitter-vimdoc parsing errors introduced in a recent PR. * Drop the tolerance of the test to 0 to make sure this doesn't happen again.
| * docs: fix more treesitter parsing errorsChristian Clason2023-02-23
| |
| * test(help): drop treesitter parse error to 0Christian Clason2023-02-23
| | | | | | | | | | All parser errors have been fixed; make sure we don't introduce new ones.
| * docs(treesitter): fix parse errorsChristian Clason2023-02-23
|/
* fix(highlight): avoid ORing underline flags (#22372)zeertzjq2023-02-23
| | | | | When combining attributes use the one that takes priority. For :highlight command use the last one specified. For API use a hard-coded order same as the order in docs.
* Merge pull request #21222 from bfredl/bitbandbfredl2023-02-22
|\ | | | | feat(lua): make sure require'bit' always works, even on PUC LUA 5.1
| * feat(lua): make sure require'bit' always works, even with PUC lua 5.1bfredl2023-02-22
|/
* Merge #21428 docs: naming conventions, guidelinesJustin M. Keyes2023-02-22
|\
| * docs: naming conventions, guidelinesJustin M. Keyes2023-02-22
| | | | | | | | close #21063
| * docs: mention getmousepos() for click execute function labelLuuk van Baal2023-02-22
| | | | | | | | | | close #18741 close #11312
| * docs: vim_diff.txtJustin M. Keyes2023-02-22
| |
* | refactor(treesitter): Add vim.treesitter.get_node() (#22360)Gregory Anders2023-02-22
|/ | | | | | | | | | | | This function replaces both vim.treesitter.get_node_at_pos() and vim.treesitter.get_node_at_cursor(). These two functions are similar enough that they don't need separate interfaces. Even worse, get_node_at_pos() returns a TSNode while get_node_at_cursor() returns a string, so the two functions behave slightly differently. vim.treesitter.get_node() combines these two into a more streamlined interface. With no arguments, it returns the node under the cursor in the current buffer. Optionally, it can accept a buffer number or a position to get the node at a given position in a given buffer.
* build(deps): bump LuaJIT to HEAD - 505e2c03d (#22362)Christian Clason2023-02-22
|
* vim-patch:9.0.1337: yuck files are not recognized (#22358)Christian Clason2023-02-22
| | | | | | | | | Problem: Yuck files are not recognized. Solution: Add a filetype pattern for yuck files. (Amaan Qureshi, closes vim/vim#12033) https://github.com/vim/vim/commit/cfce5cf542db20c7beba5b4211c0ae3305a64a43 Co-authored-by: Amaan Qureshi <amaanq12@gmail.com>
* docs: remove the test badge from the README (#22350)dundargoc2023-02-21
| | | | | Tests are flaky, and a failure doesn't necessarily impart useful information. Furthermore, we don't need to link to the tests as it's just as easy to reach it from the Actions tab.