Thomas Vigouroux
a373ca1d82
Merge pull request #15466 from vigoux/ts-query-auto
...
feat(ts): add query module in treesitter keys
2021-08-24 17:45:54 +02:00
Michael Lingelbach
5d633546bf
fix(lsp): enable additional capabilities ( #15470 )
...
Declaration, type-definition, and implementation capabilities were
previously disabled if the client received table output from the server
capabilities. The workDoneProgress capability is sent for many servers
for all supported capabilities as part of this table. Default to setting
capability to table instead of false.
2021-08-23 16:25:15 -04:00
Christian Clason
a92e83ac14
vim-patch:6aa5729 ( #15463 )
...
Update Scala syntax file
6aa57295cf
2021-08-23 17:58:45 +02:00
Thomas Vigouroux
8e0963d307
feat(ts): add query module in treesitter keys
2021-08-23 15:34:08 +02:00
Lewis Russell
c5d76c5b9b
fix(doc): example for vim.diff() ( #15464 )
2021-08-23 13:47:54 +02:00
Thomas Vigouroux
34b60ec894
Merge pull request #15434 from Dkendal/feature-lua-treesitter-sibling
...
feat(treesitter): add next, prev sibling method
2021-08-23 09:14:40 +02:00
Jesse Atkinson
da5d023c97
vim-patch:8.2.3358: structurizr files are not recognized ( #15417 )
...
Problem: Structurizr files are not recognized.
Solution: Recognize the file by contents. (Bastian Venthur, closes vim/vim#8764 )
dea561111a
2021-08-22 14:40:59 -07:00
Gregory Anders
c2a211b8e3
docs: make Lua docstrings consistent #15255
...
The official developer documentation in in :h dev-lua-doc specifies to
use "--@" for special/magic tokens. However, this format is not
consistent with EmmyLua notation (used by some Lua language servers) nor
with the C version of the magic docstring tokens which use three comment
characters.
Further, the code base is currently split between usage of "--@",
"---@", and "--- @". In an effort to remain consistent, change all Lua
magic tokens to use "---@" and update the developer documentation
accordingly.
2021-08-22 13:55:28 -07:00
Lewis Russell
783140c670
fix(doc): move vim.diff doc ( #15456 )
...
... to prevent bots from overwriting it
2021-08-22 13:52:56 +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
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
50b30de200
feat(terminal): TermClose: set exit code in v:event.status #15406
...
Closes #4713
2021-08-20 10:45:28 -07:00
Dylan Kendal
140084180e
feat(treesitter): add next, prev sibling method
...
Add tsnode methods to change to the next, previous, named or unnamed
nodes.
2021-08-20 11:58:15 -04: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
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
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
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
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
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
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
Andrea Cappuccio
adebbebdd7
fix(lsp): properly handle nil lines when trimming empty lines ( #15325 )
2021-08-10 20:52:30 +02:00
Hans Pinckaers
1a10acb997
fix(lsp): floating popup should take offset_x into account when positioning ( #15297 )
2021-08-09 23:56:58 +02:00
Cezary Drożak
33b4513b89
doc: Document -complete=lua option ( #15102 )
2021-08-09 21:21:14 +02:00
github-actions[bot]
3cacd108d0
docs: regenerate ( #15324 )
...
Co-authored-by: marvim <marvim@users.noreply.github.com >
2021-08-09 20:54:28 +02:00
Matthieu Coudron
0e9d97896a
Merge pull request #15307 from muniter/update-help.txt
...
docs(help.txt): Add a tag to the neovim api.
2021-08-09 19:51:47 +02:00
max397574
a3d5f391cf
docs: Add some references to LSP specification ( #15321 )
2021-08-09 19:45:00 +02:00
Javier Lopez
109a417e21
docs(help.txt): add treesitter to the main help file
2021-08-09 09:17:02 -05:00
Javier Lopez
4667bfb732
docs(help.txt): add a tag to the neovim api
2021-08-09 09:16:56 -05:00
Jan Edmund Lazo
43a874ab74
vim-patch:8.2.3198: cannot use 'formatlistpat' for breakindent
...
Problem: Cannot use 'formatlistpat' for breakindent.
Solution: Use a negative list indent. (Maxim Kim, closes vim/vim#8594 )
f674b358fc
Port get_showbreak_value() from patch v8.1.2281
to avoid breaking changes when porting older patches.
2021-08-08 22:22:34 -04:00
Jan Edmund Lazo
f89a275e32
vim-patch:8.2.3160: 'breakindent' does not work well for bulleted lists
...
Problem: 'breakindent' does not work well for bulleted and numbered lists.
Solution: Add the "list" entry to 'breakindentopt'. (Christian Brabandt,
closes vim/vim#8564 , closes vim/vim#1661 )
4a0b85ad01
2021-08-08 22:22:34 -04:00
Gregory Anders
68f61b167e
vim-patch:8.2.3285: scdoc filetype is not recognized ( #15294 )
...
Problem: Scdoc filetype is not recognized.
Solution: Add filetype detection. (Gregory Anders, closes vim/vim#8701 )
dd097bdc13
2021-08-08 18:27:34 -04:00
dundargoc
c9131ef9b5
docs: fix paragraph for BufEnter in the documentation ( #15301 )
2021-08-07 12:18:40 +02:00
Thomas Vigouroux
faa3007927
Merge pull request #14767 from theHamsta/no-treesitter-mapping-to-non-existent
...
fix(treesitter): do not map hl_group when no mapping is set
2021-08-07 11:44:41 +02:00
Folke Lemaitre
e7bde44d6d
fix(lsp): prevent duplicate lines seperated by newlines ( #15284 )
2021-08-06 17:15:49 -04:00
Stephan Seitz
912152d635
chore: remove reference to nvim-treesitter in comment
2021-08-06 22:08:45 +02:00
Stephan Seitz
f489d98653
fix(treesitter): do not map hl_group when no mapping is set
...
This changes the behavior of the hl_cache to the old one.
- when the capture exists as a hlgroup -> use it
- when hl_map contains a mapping -> use it
- else do nothing (before: map capture to non-existing capture)
Before also captures `@foo.bar` would intend to use the hlgroup `foo.bar`
which results in a confusing error since hlgroups can't contain dots.
2021-08-06 22:04:28 +02:00
Gregory Anders
2093b12b82
refactor: remove remaining references to nvim_buf_set_virtual_text
2021-08-03 11:39:46 -06:00
Jan Edmund Lazo
8baf7bce2b
Merge pull request #15226 from zeertzjq/vim-8.1.2029
...
vim-patch:8.1.2029,8.1.2117,8.1.2214,8.2.3204
2021-08-02 19:23:57 -04:00