Lewis Russell
783140c670
fix(doc): move vim.diff doc ( #15456 )
...
... to prevent bots from overwriting it
2021-08-22 13:52:56 +02:00
Björn Linse
7ebb25cca1
Merge pull request #15451 from bfredl/metamap
...
perf(map): get rid of unnecessary pointer indirections for maps.
2021-08-22 13:12:58 +02:00
Lewis Russell
3d3c0c669d
feat(api): add lua C bindings for xdiff ( #14536 )
...
* feat(api): add lua C bindings for xdiff
* chore: opt.hunk_lines -> opt.result_type
opt.on_hunk now takes precedence over opt.result_type
* chore: fix indents
Fix indents
* chore: change how priv is managed
Assign priv NULL and unconditionally apply XFREE_CLEAR to it when
finished.
2021-08-22 12:22:04 +02:00
Björn Linse
c265fd31ab
refactor(api): remove unneccesary indirection around handles
...
These things are just maps to pointers, no need to perform
a huge song and dance around it.
2021-08-22 11:28:47 +02:00
Björn Linse
b888018aed
refactor(marktree): embed the keymap in the MarkTree struct
2021-08-22 10:46:04 +02:00
Björn Linse
b2277a4279
refactor(map): get rid of spurious subsystem_init() functions due to maps
2021-08-22 10:46:04 +02:00
Björn Linse
6d23a58b7d
refactor(extmark): remove pointer indirection for extmark use of maps
2021-08-22 10:46:01 +02:00
Björn Linse
4500253f60
refactor(syntax): don't use pointer indirected maps for no reason
2021-08-22 10:10:15 +02:00
Björn Linse
9e651a9d09
perf(map): reduce double pointer indirection to single pointer indirection
...
the only field of Map(...) was a pointer to a khash_t. make it contain
the struct by value instead.
2021-08-22 09:54:21 +02:00
Justin M. Keyes
8331cd13c4
docs #15447
...
- update ":help 'hidden'" #15410
- update ":help K" #15398
- try to capture some of the debug steps from #12036 (bpftrace, USDT probes)
2021-08-21 18:26:33 -07:00
Gregory Anders
a90513c24b
feat(keywordprg): use :terminal for external commands #15398
...
Open external 'keywordprg' commands in a :terminal in a new tab. <Esc> is
mapped to stop the job and close the buffer.
Closes #2995
Closes #2761
2021-08-21 17:23:10 -07:00
Gregory Anders
50b30de200
feat(terminal): TermClose: set exit code in v:event.status #15406
...
Closes #4713
2021-08-20 10:45:28 -07:00
Björn Linse
599af74514
Merge pull request #15295 from gpanders/ftdetect
...
fix: only source package ftdetect files once
2021-08-20 11:30:43 +02:00
github-actions[bot]
2ae9ff1285
docs: regenerate ( #15431 )
...
Co-authored-by: marvim <marvim@users.noreply.github.com>
2021-08-19 20:28:18 +02:00
Björn Linse
69741107e6
Merge pull request #15429 from bfredl/hl_2
...
perf(treesitter): avoid string lookup of highlight name in hot loop
2021-08-19 19:15:16 +02:00
Mathias Fußenegger
ff0833cb4e
feat(lsp): allow root_dir to be nil ( #15430 )
...
According to the protocol definition `rootPath`, `rootUri` and
`workspaceFolders` are allowed to be null.
Some language servers utilize this to provide "single file" support.
If all three are null, they don't attempt to index a directory but
instead only provide capabilities for a single file.
2021-08-19 18:15:18 +02:00
Zi How Poh
ea39ff5732
feat(lsp): jump to diagnostics by position ( #14795 )
2021-08-19 11:36:01 -04:00
Björn Linse
2460f0a702
perf(treesitter): avoid string lookup of highlight name in hot loop
...
These numbers are guaranteed to be stable even if you do "highlight
clear" (all attributes disappear, but not the id to name mapping itself)
2021-08-19 16:45:04 +02:00
Björn Linse
d088066fa1
Merge pull request #15422 from bfredl/syn_name2id_go_brr
...
feat(highlights): some improvements and perf fixes
2021-08-19 15:48:22 +02:00
Justin M. Keyes
19a0d90bb3
Merge #15410 defaults: 'hidden', 'nojoinspaces'
...
ref #6289
2021-08-19 06:13:08 -07:00
Björn Linse
bb4b4d79a8
perf(highlight): use a hashtable for highlight group names
...
syn_name2id and syn_check_group go brr.
Note: this has impact mostly when using multiple filetypes,
as the old syn_name2id was optimized to return latest
added groups quickly (which will be the latest filetype)
2021-08-19 15:08:50 +02:00
Björn Linse
fca52f5f32
feat(match): allow hl group to be defined after :match command
2021-08-19 15:08:50 +02:00
Gregory Anders
d8ab8cccd0
test: update tests to work with 'hidden'
2021-08-18 12:17:12 -06:00
Björn Linse
a9f563ab62
refactor(highlight): make syn_check_group alloc free for existing group
2021-08-18 14:19:01 +02:00
Björn Linse
7bff642169
Merge pull request #15249 from dundargoc/refactor/a-song-of-true-and-false
...
refactor: replace TRUE/FALSE with true/false
2021-08-18 10:10:42 +02:00
Gregory Anders
d417e67e59
feat(defaults): set nojoinspaces
2021-08-17 16:39:04 -06:00
Gregory Anders
f6c72b745c
feat(defaults): set hidden
2021-08-17 16:38:39 -06:00
Björn Linse
15b736d6e8
Merge pull request #15396 from gpanders/options-no-vi-vim
...
refactor(options): remove vi/vim default value distinction
2021-08-17 16:46:36 +02:00
Gregory Anders
8e926a0984
refactor(options): remove vi/vim default value distinction
2021-08-17 08:07:41 -06:00
dundargoc
35c6aef1c9
docs: update pull request workflow #15243
...
The WIP, RFC and RDY stage workflow is outdated and unnecessary. The new
workflow utilize the draft pull request on GitHub.
2021-08-17 05:58:49 -07:00
Gregory Anders
2cb8db34e3
feat: defaults: set undo points in <C-U> and <C-W> ( #15400 )
2021-08-16 18:28:52 -07:00
Gregory Anders
3954537b9e
feat(defaults): remove 'options' from viewoptions #15397
...
ref #6289
2021-08-16 13:05:24 -07:00
Thomas Vigouroux
e01b88c799
Merge pull request #15399 from mfussenegger/private-lsp-comments
...
docs(lsp): Prevent internal comments from showing as vim.lsp.init docs
2021-08-16 21:32:18 +02:00
Mathias Fussenegger
c1e17866c8
docs(lsp): prevent internal comments from showing as vim.lsp.init docs
2021-08-16 20:27:51 +02:00
Gregory Anders
4ba74953b5
feat(defaults): switchbuf=uselast #15394
2021-08-16 11:20:46 -07:00
Gregory Anders
7215d35694
feat: defaults: inccommand=nosplit #15395
2021-08-16 10:39:17 -07:00
Gregory Anders
0aa8128aaa
feat(defaults): map CTRL-L to search highlights, update diffs #15385
2021-08-16 08:31:14 -07:00
dundargoc
7146103be2
ci: increase clint line length limit to 100 characters ( #15252 )
2021-08-16 15:32:36 +02:00
James McCoy
57fc3d3ed7
Merge pull request #15386 from jamessan/32-bit-revert
...
Revert "tests: unit: fix preprocess: pass -m32 for 32bit ABI (#11073 )"
2021-08-16 07:29:17 -04:00
gmntroll
29712aef60
fix(autocmd.c): fix conditions in block_autocmds, unblock_autocmds #15372
...
Logic got swapped in 7574918dc7
.
We didn't notice it since v:termresponse isn't really used yet. #6279
2021-08-16 00:43:21 -07:00
zeertzjq
e9dd640897
vim-patch:8.2.3295: 'cursorline' should not apply to 'breakindent' #15281
...
Problem: 'cursorline' should not apply to 'breakindent'.
Solution: Make 'cursorline' apply to 'breakindent' and 'showbreak'
consistently. (closes vim/vim#8684 )
4f33bc20d7
2021-08-16 00:27:04 -07:00
Justin M. Keyes
54726e8bb9
fix(defaults): do not map Y in visual-mode #15387
...
Y in visual-mode is unrelated to the normal-mode behavior.
reverts part of #13268
2021-08-16 00:13:25 -07:00
Matthieu Coudron
5a111c1b02
feat(defaults): map Y to y$ #13268
...
rationale:
- consistent with D and Y
- long recommended by Vim's own ":help Y"
close #13268
close #416
ref #6289
2021-08-15 21:24:59 -07:00
James McCoy
c417d573a3
Revert "tests: unit: fix preprocess: pass -m32 for 32bit ABI ( #11073 )"
...
This reverts commit ed11721b6b
.
It broke multiple 32-bit builds and isn't actually required for building
in a true x86 32-bit environment.
2021-08-16 00:02:22 -04:00
James McCoy
aa07d06bf4
Merge pull request #15363 from dundargoc/ci/squash
...
ci: ensure all PRs are up to date with master before attempting squash
2021-08-15 11:39:08 -04:00
James McCoy
c6ef95606f
fix(ci): re-run GHA for ready_for_review events ( #15377 )
...
By default, the pull_request target only runs for the "opened",
"synchronize", and "reopened" events.
Since we've disabled GHA CI for "draft" PRs, the "ready_for_review"
event also needs to be included so CI is automatically run when leaving
draft status.
2021-08-15 15:27:50 +02:00
Dundar Göc
9367aee62d
ci: ensure all PRs are up to date with master before attempting squash
...
This is to ensure unrelated authors don't get credited.
2021-08-15 12:38:05 +02:00
Christian Clason
0f2af87a38
Merge pull request #15320 from neovim/julia
...
vim-patch:8.2.3283: Julia filetype is not recognized
vim-patch:6aa5729: Add Julia runtime files
2021-08-15 11:22:30 +02:00
Christian Clason
65f32f0f19
vim-patch:6aa5729
...
Add Julia runtime files.
6aa57295cf
2021-08-15 11:02:19 +02:00
Christian Clason
0dc4bec69e
vim-patch:8.2.3283: Julia filetype is not recognized
...
Problem: Julia filetype is not recognized
Solution: Add filetype detection. (Christian Clason, closes #8700 )
issue: vim/vim#7498
vim-patch: vim/vim@0eec851
2021-08-15 11:02:12 +02:00