aboutsummaryrefslogtreecommitdiff
path: root/runtime/lua/vim
Commit message (Collapse)AuthorAge
* 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
|
* fix(remote): report on missing wait commands, typecheck lua resultsCharlie Groves2022-03-11
| | | | Clean up lint errors, too
* test(remote): add tests for --remoteCharlie Groves2022-03-11
| | | | This also fixes a fair number of issues found in running the tests
* feat(remote): add basic --remote supportCharlie Groves2022-03-11
| | | | | This is starting from @geekodour's work at https://github.com/neovim/neovim/pull/8326
* Merge pull request #17660 from bfredl/luacompletebfredl2022-03-10
|\ | | | | feat(lua): handle lazy submodules in `:lua vim.` wildmenu completion
| * feat(lua): handle lazy submodules in `:lua vim.` wildmenu completionbfredl2022-03-09
| |
* | chore: fix typos (#17331)dundargoc2022-03-10
|/ | | | | | Co-authored-by: Hongyi Lyu <hongyi.lyu95@gmail.com> Co-authored-by: Gregory Anders <greg@gpanders.com> Co-authored-by: notomo <notomo.motono@gmail.com> Co-authored-by: zeertzjq <zeertzjq@outlook.com>
* 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.
* fix(lsp): handle insertion of previous line (#17618)Michael Lingelbach2022-03-06
|
* docs(lua): reference runtime/lua/vim/_editor.luazeertzjq2022-03-06
|
* Merge pull request #17603 from bfredl/luaworldbfredl2022-03-05
|\ | | | | refactor(lua): move only runtime lua file in src/ to runtime/lua
| * refactor(lua): move only runtime lua file in src/ to runtime/luabfredl2022-03-04
| | | | | | | | reorganize so that initialization is done in lua
* | fix(lsp): start incremental sync range at previous newline character (#17610)Michael Lingelbach2022-03-05
|/ | | This change forces the start of an incremental sync range to begin always on an existing line.
* refactor(lua): reorganize builtin modules, phase 1bfredl2022-03-03
|
* feat(diagnostic): add "code" to the diagnostic structure (#17510)David Shen2022-03-02
|
* fix(lsp): respect all of 'fixeol', 'eol', and 'binary' applying edits (#17574)Tim Pope2022-03-02
|
* Merge pull request #16969 from shadmansaleh/enhance/ingore_nore_on_plug_keymapsbfredl2022-02-27
|\ | | | | feat: ignore nore on <Plug> maps
| * chore: remove <Plug> detection from vim.keymapshadmansaleh2022-02-27
| |
* | refactor(lua): cleanup and docs for threadsbfredl2022-02-26
| |
* | feat(lua): add proper support of luv threadserw72022-02-26
|/
* vim-patch:8.2.4464: Dtrace files are recognized as filetype D (#17518)Christian Clason2022-02-26
| | | | | | Problem: Dtrace files are recognized as filetype D. Solution: Add a pattern for Dtrace files. (Teubel György, closes vim/vim#9841) Add some more testing. https://github.com/vim/vim/commit/4d56b971cbae01cc454eb09713326224993e38ed
* refactor(highlight)!: optional arguments for highlight.range as table (#17462)Christian Clason2022-02-21
| | | | | | | | | also update documentation BREAKING CHANGE: signature of highlight.range is now vim.highlight.range(bufnr, ns, hlgroup, start, finish, { regtype = regtype, inclusive = inclusive, priority = priority }) Co-authored-by: Gregory Anders <8965202+gpanders@users.noreply.github.com>
* fix(diagnostic): use botright copen for qflist (#17475)Michael Lingelbach2022-02-20
| | | | This matches the LSP handlers, and forces the qflist for diagnostics to span across the horizontal space, below all open windows.
* fix(lsp): use botright copen for all handlers (#17471)Michael Lingelbach2022-02-20
|
* vim-patch:8.2.4424: ".gts" and ".gjs" files are not recognized (#17464)Christian Clason2022-02-19
| | | | | | Problem: ".gts" and ".gjs" files are not recognized. Solution: Recognize Glimmer flavored typescript and javascript. (closes vim/vim#9799) https://github.com/vim/vim/commit/cdf717283ca70b18f20b8a2cefe7957083280c6f
* fix: lsp and diagnostic highlight priority (#17461)Michael Lingelbach2022-02-19
| | | | | | | | | Closes https://github.com/neovim/neovim/issues/17456 * treesitter uses the default highlight priority of 50 * diagnostic highlights have a priority of 150 * lsp reference highlights have a priority of 200 This ensures proper ordering.
* vim-patch:8.2.4414: solidity files are not recognized (#17451)Christian Clason2022-02-18
| | | | | Problem: Solidity files are not recognized. Solution: Add the *.sol pattern. (Dundar Goc, closes vim/vim#9792) https://github.com/vim/vim/commit/97b231541d4e82fbc85e51121448d95bd43c50ad