aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
Commit message (Collapse)AuthorAge
* fix(lua): don't mutate opts parameter of vim.keymap.del (#18227)Andrey Mishchenko2022-04-23
| | | | | | `vim.keymap.del` takes an `opts` parameter that lets caller refer to and delete buffer-local mappings. For some reason the implementation of `vim.keymap.del` mutates the table that is passed in, setting `opts.buffer` to `nil`. This is wrong and also undocumented.
* fix(treesitter): create new parser if language is not the same as cached ↵Chinmay Dalal2022-04-22
| | | | parser (#18149)
* Merge pull request #18211 from clason/update-inspectbfredl2022-04-22
|\ | | | | chore: update inspect.lua to 3.1.3
| * chore: update inspect.lua to 3.1.3Christian Clason2022-04-21
| |
* | docs(lua): explain and link to lua patterns (#18206)Christian Clason2022-04-21
|/ | | also correct explanation of when it's allowed to omit parens in Lua function calls
* docs: vim.keymap.set can specify buffer as an optionatusy2022-04-21
|
* Merge pull request #18185 from clason/vim-8.2.4781Christian Clason2022-04-20
|\ | | | | vim-patch:8.2.{4781,4793}: maxima files are not recognized
| * vim-patch:8.2.4793: recognizing Maxima filetype even though it might be anotherChristian Clason2022-04-20
| | | | | | | | | | | | Problem: Recognizing Maxima filetype even though it might be another. Solution: Remove *.mc and *.dem patterns from Maxima files https://github.com/vim/vim/commit/928a13135629fa8e73796760077b1b877918a080
* | fix(lsp): unify progress message handling (#18040)runiq2022-04-20
| | | | | | | | | | | | | | | | | | | | | | The LSP progress handler would put non-progress messages (such as from clangd or pyls; not part of the LSP spec) directly into `client.messages`, while `vim.lsp.util.get_progress_messages()` would try to fetch them from `client.messages.messages` instead (and come up empty everytime). This would result in these messages never being cleaned up by `get_progress_messages()`. This commit fixes that by treating those messages like show-once progress messages (by setting `done=true` immediately).
* | fix(diagnostic): use nvim_exec_autocmds to trigger DiagnosticChanged (#18188)Gregory Anders2022-04-20
|/ | | | | Use nvim_exec_autocmds to issue the DiagnosticChanged autocommand, rather than nvim_buf_call, which has some side effects when drawing statuslines.
* vim-patch:8.2.4790: lilypond filetype not recognized (#18174)Christian Clason2022-04-20
| | | | | Problem: Lilypond filetype not recognized. Solution: Add patterns for lilypond. (Doug Kearns) https://github.com/vim/vim/commit/c448e9c95089b5e7170a0dd36635a226c5eb5b1c
* vim-patch:8.2.4778: pacman files use dosini filetype (#18152)Christian Clason2022-04-17
| | | | | Problem: Pacman files use dosini filetype. Solution: Use conf instead. (Chaoren Lin, closes vim/vim#10213) https://github.com/vim/vim/commit/35cff32dd82e5e2b72453b9f27d0655fc5b8a639
* vim-patch:8.2.4767: openscad files are not recognized (#18138)Christian Clason2022-04-17
| | | | | Problem: Openscad files are not recognized. Solution: Add a filetype pattern. (Niklas Adam, closes vim/vim#10199) https://github.com/vim/vim/commit/c360b2566ce2390d45d9436a6a85719fe2b387d5
* fix(paste): ignore mappings in Cmdline mode (#18114)Eden Zhang2022-04-17
|
* docs: typo fixes (#17859)dundargoc2022-04-15
| | | | | | | | | | Co-authored-by: Elias Alves Moura <eliamoura.alves@gmail.com> Co-authored-by: venkatesh <shariharanvenkatesh@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com> Co-authored-by: Vikas Raj <24727447+numToStr@users.noreply.github.com> Co-authored-by: Steve Vermeulen <sfvermeulen@gmail.com> Co-authored-by: Evgeni Chasnovski <evgeni.chasnovski@gmail.com> Co-authored-by: rwxd <rwxd@pm.me> Co-authored-by: casswedson <58050969+casswedson@users.noreply.github.com>
* fix(lsp): fix lookup of boolean values in workspace/configuration (#18026)Fredrik Ekre2022-04-15
|
* vim-patch:8.2.4746: supercollider filetype not recognized (#18102)Christian Clason2022-04-13
| | | | | | Problem: Supercollider filetype not recognized. Solution: Match file extentions and check file contents to detect supercollider. (closes vim/vim#10142) https://github.com/vim/vim/commit/8cac20ed42b7b7fc9c6b54e3055ca1047f50b8ca
* fix(lsp): pass offset_encoding in formatexpr() (#18084)Tony Fettes2022-04-11
|
* vim-patch:8.2.4733: HEEx and Surface do need a separate filetypezeertzjq2022-04-11
| | | | | | Problem: HEEx and Surface do need a separate filetype. Solution: Revert 8.2.4729. (closes vim/vim#10147) https://github.com/vim/vim/commit/4232dff815db1a727cb1aea26783267d8bd731c3
* vim-patch:8.2.4729: HEEx and Surface templates do not need a separate ↵Christian Clason2022-04-10
| | | | | | | filetype (#18065) Problem: HEEx and Surface templates do not need a separate filetype. Solution: Use Eelixir for the similar filetypes. (Aaron Tinio, closes vim/vim#10124) https://github.com/vim/vim/commit/fa76a24109f3c3287e4ee17b6270bfd5310c12f3
* vim-patch:8.2.4721: cooklang files are not recognized (#18058)Christian Clason2022-04-09
| | | | | Problem: Cooklang files are not recognized. Solution: recognize *.cook files. (Goc Dundar, closes vim/vim#10120) https://github.com/vim/vim/commit/36951ed1dab2b2e816dc8959c72b5732f36d9e3b
* vim-patch:8.2.4720: ABB Rapid files are not recognized properly (#18057)Christian Clason2022-04-09
| | | | | | Problem: ABB Rapid files are not recognized properly. Solution: Add checks for ABB Rapid files. (Patrick Meiser-Knosowski, closes #10104) https://github.com/vim/vim/commit/b09c320039ad49e62d2e2d7f14ba47ee3ca0706a
* vim-patch:8.2.4715: Vagrantfile not recognized (#18052)Christian Clason2022-04-09
| | | | | Problem: Vagrantfile not recognized. Solution: Recognize Vagrantfile as ruby. (Julien Voisin, closes vim/vim#10119) https://github.com/vim/vim/commit/5e1792270a072a96157e5d5e1d6a97414e26d0bf
* vim-patch:8.2.4708: PHP test files are not recognized (#18025)Christian Clason2022-04-07
| | | | | Problem: PHP test files are not recognized. Solution: Add the *.phpt pattern. (Julien Voisin, closes vim/vim#10112) https://github.com/vim/vim/commit/177847e67a495f80a15b6dfd0a3fcd151b44249e
* vim-patch:8.2.4701: Kuka Robot Language files not recognized (#18012)Christian Clason2022-04-07
| | | | | | Problem: Kuka Robot Language files not recognized. Solution: Recognize *.src and *.dat files. (Patrick Meiser-Knosowski, closes vim/vim#10096) https://github.com/vim/vim/commit/3ad2090316edc85e93094bba7af64f9991cc7f85
* vim-patch:8.2.4664: Elvish files are not recognized (#17963)Christian Clason2022-04-02
| | | | | Problem: Elvish files are not recognized. Solution: Recognize .elv files. (Bruno Roque, closes vim/vim#10058) https://github.com/vim/vim/commit/c1658a196bb05dd96562fd0a92409be2201b62e9
* fix(keymap): don't coerce false to ''Lewis Russell2022-04-01
|
* Merge pull request #17842 from lewis6991/keymapbfredl2022-04-01
|\ | | | | feat(keymap): return nil from an expr keymap
| * feat(keymap): return nil from an expr keymapLewis Russell2022-03-24
| | | | | | | | | | For Lua callback expr keymaps, returning `nil` or `false` is equivalent to an empty string
* | vim-patch:8.2.4658: org-mode files are not recognized (#17939)Christian Clason2022-03-31
| | | | | | | | | | Problem: Org-mode files are not recognized. Solution: Add patterns to recognize "org" files. (closes vim/vim#10046) https://github.com/vim/vim/commit/3a6f952cc87065a4cf1f6502b2054ba99fdf45ed
* | feat(runtime): add query filetype (#17905)Christian Clason2022-03-31
| | | | | | | | | | | | used for Tree-sitter queries uses Lisp runtime files (in Lua to distinguish from upstream runtime files)
* | feat(treesitter): add more default groups to highlight map (#17835)Gregory Anders2022-03-30
| | | | | | This covers some default groups listed in :h group-name.
* | docs(lsp): remove outdated offset_encoding default value for apply_text_editsAndrea Cappuccio2022-03-30
| |
* | fix(lsp): use "text" filetype for plaintext (#17898)Jaehwang Jung2022-03-28
| |
* | fix(diagnostic): make `open_float` respect global diagnostic options (#17879)Smitesh Patil2022-03-27
| | | | | | | | * make `open_float` respect `scope` option set in `vim.diagnostic.config` * Closes #17878
* | fix(filetype.lua): always return a string in getline helper function (#17852)Jared Weakly2022-03-25
| | | | | | | | | | | | Uses of `getline` in `filetype.lua` currently assume it always returns a string. However, if the buffer is unloaded when filetype detection runs, `getline` returns `nil`. Fixing this prevents errors when filetype detection is run on unloaded buffers.
* | feat: add vim.tbl_get (#17831)Michael Lingelbach2022-03-24
|/ | | | | | vim.tbl_get takes a table with subsequent string arguments (variadic) that index into the table. If the value pointed to by the set of keys exists, the function returns the value. If the set of keys does not exist, the function returns nil.
* Merge pull request #17776 from bfredl/tsconcealbfredl2022-03-20
|\ | | | | feat(ui): allow conceal to be defined in decorations
| * feat(ui): allow conceal to be defined in decorationsbfredl2022-03-20
| | | | | | | | | | | | Unlike syntax conceal, change highlight of concealed char Can be used in tree-sitter using "conceal" metadata.
* | fix(lsp): set tabSize from 'shiftwidth', not 'softtabstop' (#17787)Tim Pope2022-03-20
|/ | | | | | | | | The use of 'softtabstop' to set tabSize was introduced in 5d5b068, replacing 'tabstop'. If we look past the name tabSize and at the actual purpose of the field, it's the indentation width used when formatting. This corresponds to the Vim option 'shiftwidth', not 'softtabstop'. The latter has the comparatively mundane purpose of controlling what happens when you hit the tab key (and even this is incomplete, as it fails to account for 'smarttab').
* chore: fix typos (#17670)dundargoc2022-03-17
| | | Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* vim-patch:8.2.4571: not all gdb files are recognized (#17727)Jade Lovelace2022-03-15
| | | | | | Problem: Not all gdb files are recognized. Solution: Add a few more patterns for gdb. (closes https://github.com/vim/vim/pull/9956) https://github.com/vim/vim/commit/8d5e514d77bd4b1956656ad2be2ce7094bd43a72
* fix(paste): escape control characters in Cmdline modezeertzjq2022-03-15
|
* fix(paste): deal with trailing new line in chunkzeertzjq2022-03-15
|
* fix(paste): avoid edges cases caused by empty chunkzeertzjq2022-03-15
|
* refactor(paste): do not print dots in cmdline modezeertzjq2022-03-15
|
* fix(paste): deal with eol and eof in Visual modezeertzjq2022-03-15
|
* fix(paste): don't move cursor past the end of pasted text in Normal modezeertzjq2022-03-15
|
* fix(paste): use getcmdtype() to determine whether in cmdline modezeertzjq2022-03-15
|
* fix(remote): respect silent in error reportingCharlie Groves2022-03-11
|