aboutsummaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAge
* test(filetype): port test_filetype to LuaGregory Anders2022-01-05
| | | | | | | | | | Because filetype.lua is gated behind an opt-in variable, it's not tested during the "standard" test_filetype.vim test. So port the test into filetype_spec where we enable the opt-in variable. This means runtime Vim patches will need to update test_filetype in two places. This can eventually be removed if/when filetype.lua is made opt-out rather than opt-in.
* fix(filetype): match on <afile> rather than <abuf> (#16943)Gregory Anders2022-01-05
| | | | | | | Filetype detection runs on BufRead and BufNewFile autocommands, both of which can fire without an underlying buffer, so it's incorrect to use <abuf> to determine the file path. Instead, match on <afile> and assume that the buffer we're operating on is the current buffer. This is the same assumption that filetype.vim makes, so it should be safe.
* feat(lsp): enable default debounce of 150 ms (#16908)Michael Lingelbach2022-01-05
|
* feat(autocmd): populate v:event in RecordingLeave (#16828)Axel Dahlberg2022-01-04
|
* feat(filetype.lua): add support for txt files (#16926)KillTheMule2022-01-04
|
* chore: ignore unused args in filetype functions (#16927)Gregory Anders2022-01-04
| | | Also mark the 'getline' helper function as private to avoid docgen.
* test: fix absolute paths in filetype_spec (#16920)Gregory Anders2022-01-04
|
* fix(filetype): set default ft_ignore_pat in filetype.lua (#16917)Gregory Anders2022-01-04
| | | | | This default value is also set in filetype.vim, but if filetype.vim is disabled the variable is never defined, which causes errors in some of the dist#ft detection functions.
* feat(filetype.lua): Add typescript extension to filetype detection (#16923)Robin Gagnon2022-01-04
| | | port from `filetype.vim`; also add `getline` convenience function
* fix(api): force redefinition of user commands by default (#16918)Gregory Anders2022-01-04
|
* chore: fix typos (#16816)dundargoc2022-01-04
| | | | | | | Co-authored-by: Sean Dewar <seandewar@users.noreply.github.com> Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: Sebastian Volland <seb@baunz.net> Co-authored-by: Lewis Russell <lewis6991@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* fix(lsp): suppress ContentModified errors from UI (#16904)Sam McCall2022-01-04
| | | | | | | | | Fixes https://github.com/neovim/neovim/issues/16900 If clients receive a ContentModified error, it generally should not show it in the UI for the end-user. Clients can resend the request if they know how to do so. https://microsoft.github.io/language-server-protocol/specifications/specification-current/#implementationConsiderations
* feat: filetype.lua (#16600)Gregory Anders2022-01-04
| | | | Adds a new vim.filetype module that provides support for filetype detection in Lua.
* test: make test for #14040 more stable (#16911)Daniel Steinberg2022-01-04
|
* Merge pull request #16912 from shadmansaleh/enhance/lua_cmd_inspectBjörn Linse2022-01-04
|\ | | | | feat(lua): make :lua =expr print result of expr
| * feat(lua): make =expr print result of exprshadmansaleh2022-01-04
|/
* fix(lsp): explicitly pass bufnr in didSave handler (#16906)Michael Lingelbach2022-01-03
| | | | Addresses a regression introduced by the stricter type checking in lua api functions from https://github.com/neovim/neovim/pull/16745
* Merge pull request #16903 from dundargoc/ci/install-flake-with-aptJames McCoy2022-01-03
|\ | | | | ci: install flake8 with apt instead of pip
| * ci: install flake8 with apt instead of pipDundar Göc2022-01-03
|/
* Merge pull request #16901 from dundargoc/ci/add-codeownersJames McCoy2022-01-03
|\ | | | | ci: add jamessan as codeowner for ci related files
| * ci: add jamessan as codeowner for ci related filesDundar Göc2022-01-03
| | | | | | | | [skip ci]
* | chore(build): compile lua only on release builds (#16859)Shadman2022-01-03
| |
* | fix(lsp): resolve nil bufnr (#16902)Gregory Anders2022-01-03
| | | | | | Related: #16889, #16745
* | vim-patch:8.2.3995: not all sshconfig files are detected as such (#16899)Christian Clason2022-01-03
| | | | | | | | | | | | Problem: Not all sshconfig files are detected as such. Solution: Adjust the patterns used for sshconfig detection. (David Auer, closes vim/vim#9322) https://github.com/vim/vim/commit/9acf2d8be93f3b50607279e7f3484b019675d0a7
* | ci: simplify ci_fold function (#16874)dundargoc2022-01-03
| |
* | Merge pull request #16895 from dundargoc/ci/fix-shellcheck-warningsJames McCoy2022-01-03
|\ \ | |/ |/| ci: fix shellcheck errors introduced in version 0.8.0
| * ci: fix shellcheck errors introduced in version 0.8.0Dundar Göc2022-01-03
| | | | | | | | | | | | | | Solved following shellcheck warnings: SC2030 SC2295 SC2015
* | fix(lua): stricter type check when calling API function (#16745)dundargoc2022-01-03
| | | | | | | | | | Solves #13651 Co-authored-by: Gregory Anders <greg@gpanders.com>
* | docs(usr_05): fix section numbers (#16886)Sean Dewar2022-01-03
| | | | | | | | | | Other refs to 05.3 don't need to be updated as they refer to the simple mappings section anyway. Seems they weren't updated when the defaults.vim section was added as 05.3 instead.
* | fix: resolve nil arguments to API functions (#16889)Gregory Anders2022-01-03
|/ | | | | | As revealed by #16745, some functions pass a nil value to API functions, which have been implicitly converted to 0. #16745 breaks this implicit conversion, so explicitly pass a resolved buffer number to these API functions.
* Merge pull request #16890 from dundargoc/ci/nuke-before-installJames McCoy2022-01-02
|\ | | | | ci: remove unnecessary before_install script
| * ci: remove unnecessary before_install scriptDundar Göc2022-01-02
|/
* Merge pull request #16853 from jamessan/clint-master-onlyJames McCoy2022-01-02
|\ | | | | ci: run lint only on master branch
| * ci: run lint only on master branchJames McCoy2021-12-31
| | | | | | | | | | The list of known lint issues is only updated for the master branch, so other branches report lots of false positive issues.
* | Merge pull request #16883 from dundargoc/ci/remove-watchdogJames McCoy2022-01-02
|\ \ | | | | | | ci: remove watchdog function run_tests_wd
| * | ci: remove watchdog function run_tests_wdDundar Göc2022-01-02
|/ / | | | | | | | | | | | | It's only used once for running check-single-includes (which I strongly suspect it doesn't need anyway), its core logic is incorrect since both the variables "tempsize" and "prev_temsize" are never defined and parsing ps is incredibly fragile.
* | fix(lsp): always use target bufnr in location handler (#16876)Michael Lingelbach2022-01-02
| |
* | fix(diagnostic): improve validation for list arguments (#16855)Gregory Anders2022-01-01
| | | | | | | | | | | | Function arguments that expect a list should explicitly use tbl_islist rather than just checking for a table. This helps catch some simple errors where a single table item is passed as an argument, which passes validation (since it's a table), but causes other errors later on.
* | feat(lua): add support for multiple optional types in vim.validate (#16864)Shadman2022-01-01
| |
* | ci: remove outdated travis-specific code (#16869)dundargoc2022-01-01
| |
* | build(deps): bump tree-sitter to v0.20.2 (#16863)Christian Clason2022-01-01
| |
* | Merge pull request #16870 from dundargoc/refactor/pvs/V009James McCoy2022-01-01
|\ \ | | | | | | refactor(PVS/V009): add special comment at top of file required by PVS
| * | refactor(PVS/V009): add special comment at top of file required by PVSDundar Göc2022-01-01
| | | | | | | | | | | | More info: https://pvs-studio.com/en/docs/warnings/v009/
* | | Merge pull request #16840 from zeertzjq/ci-clang-13James McCoy2022-01-01
|\ \ \ | | | | | | | | ci: bump clang version to 13 in asan and tsan
| * | | ci: bump clang version to 13 in asan and tsanzeertzjq2022-01-01
| | | |
* | | | Merge pull request #16871 from bfredl/luaperfBjörn Linse2022-01-01
|\ \ \ \ | |_|/ / |/| | | perf(api): elide luaref copy when setting 'callback' in nvim_set_keymap
| * | | perf(api): elide luaref copy when setting 'callback' in nvim_set_keymapBjörn Linse2022-01-01
|/ / /
* | | test: make some tests more stable (#16860)zeertzjq2022-01-01
| | |
* | | Merge pull request #16857 from dundargoc/vim-8.2.3956Björn Linse2022-01-01
|\ \ \ | | | | | | | | vim-patch:8.2.3956
| * | | vim-patch:8.2.3956: duplicate assignmentDundar Göc2022-01-01
| | | | | | | | | | | | | | | | | | | | | | | | Problem: Duplicate assignment. Solution: Remove the second assignment. (closes vim/vim#9442) https://github.com/vim/vim/commit/4b1478093eb8b8bebc94b1f596e0afc25db4d189