Justin M. Keyes
c7a88a470f
feat(checkhealth): improve treesitter report
2022-10-30 15:50:59 +01:00
lvimuser
e0dff29adc
fix(lsp/window_showDocument): correctly handle external resources #20867
...
- since cmd is a list, it runs directly ('no shell') and we shouldn't
escape.
- typo: shellerror -> shell_error
2022-10-30 02:35:22 -07:00
Martin Kunz
356244d50b
fix(docs): nil as viable argument for goto_prev ( #20852 )
...
Added `nil` as a possible option to `vim.diagnostics.goto_prev` in the
docs
2022-10-28 17:13:27 -06:00
NAKAI Tsuyoshi
4573cfa3ad
fix(lua): pesc, tbl_islist result types #20751
...
Problem:
- pesc() returns multiple results, it should return a single result.
- tbl_islist() returns non-boolean in some branches.
- Docstring: @generic must be declared first
Solution:
Constrain docstring annotations.
Fix return types.
Co-authored-by: Justin M. Keyes <justinkz@gmail.com >
2022-10-24 05:53:53 -07:00
Christian Clason
8371907203
vim-patch:9.0.0814: aws config files are not recognized ( #20769 )
...
vim-patch:436e5d395fd6 (since upstream tagged the wrong commit)
Problem: Aws config files are not recognized.
Solution: Use "confini" for aws config files. (Justin M. Keyes,
closes vim/vim#11416 )
436e5d395f
2022-10-21 16:36:43 +02:00
Christian Clason
e554f5c545
fix(filetype): don't pass empty string to detect ( #20766 )
...
Problem: `*.db` files use empty string as default filetype, which is
inconsistent with the rest of the code which uses `nil` instead.
Solution: don't pass a default empty string
2022-10-21 14:04:53 +02:00
Christian Clason
45ae5c6dc5
vim-patch:9.0.0808: jsonnet filetype detection has a typo ( #20753 )
...
Problem: jsonnet filetype detection has a typo.
Solution: Change "libjsonnet" to "libsonnet". (Maxime Brunet, closes vim/vim#11412 )
6c8bc37a10
2022-10-20 22:49:22 +02:00
ObserverOfTime
fad558b6af
vim-patch:9.0.0798: clang format configuration files are not recognized ( #20741 )
...
Problem: Clang format configuration files are not recognized.
Solution: Use yaml for Clang format configuration files. (Marwin Glaser,
closes vim/vim#11398 )
3c708c4390
2022-10-19 11:08:01 -06:00
Christian Clason
228a04070e
vim-patch:9.0.0779: lsl and lm3 file extensions are not recognized ( #20704 )
...
Problem: lsl and lm3 file extensions are not recognized.
Solution: Add *.lsl and *.lm3 patterns. (Doug Kearns, closes vim/vim#11384 )
4ac8e7948c
2022-10-18 20:05:50 +02:00
Christian Clason
e427313545
vim-patch:9.0.0782: OpenVPN files are not recognized ( #20702 )
...
Problem: OpenVPN files are not recognized.
Solution: Add patterns for OpenVPN files. (closes vim/vim#11391 )
4bf67ec52e
2022-10-17 18:36:10 +02:00
Christian Clason
042eb74ff1
feat(runtime)!: remove filetype.vim ( #20428 )
...
Made obsolete by now graduated `filetype.lua` (enabled by default).
Note that changes or additions to the filetype detection still need to
be made through a PR to vim/vim as we port the _logic_ as well as tests.
2022-10-17 08:52:40 +02:00
Jonas Strittmatter
d44f088834
vim-patch:9.0.0771: cannot always tell the difference beween tex and … ( #20687 )
...
vim-patch:9.0.0771: cannot always tell the difference beween tex and rexx files
Problem: Cannot always tell the difference beween tex and rexx files.
Solution: Recognize tex by a leading backslash. (Martin Tournoij,
closes vim/vim#11380 )
bd053f894b
2022-10-17 08:18:57 +02:00
David Hotham
8f31a730c0
fix(lsp): reporting bogus capabilities in CodeActionKind #20678
...
Problem:
LSP client provides bogus capabilities in CodeActionKind.
LSP logs show this in the "initialize" message:
codeActionKind = { valueSet = { "Empty", "QuickFix",
"Refactor", "RefactorExtract", "RefactorInline", "RefactorRewrite",
"Source", "SourceOrganizeImports", "", "quickfix", "refactor",
"refactor.extract", "refactor.inline", "refactor.rewrite", "source",
"source.organizeImports" }
Solution:
Only the values from the CodeActionKind table should be presented, not also the
keys.
fix #20657
2022-10-16 15:24:39 -07:00
Christian Clason
e26b48bde6
vim-patch:9.0.0752: Rprofile files are not recognized ( #20658 )
...
Problem: Rprofile files are not recognized.
Solution: Recognize Rprofile files as "r". (closes vim/vim#11369 )
7e120ffccb
2022-10-15 10:12:25 +02:00
Justin M. Keyes
e5cb3104d0
docs: fix/remove invalid URLs #20647
2022-10-14 08:01:13 -07:00
Daniel Zhang
81986a7349
fix(lua): on_yank error with blockwise multibyte region #20162
...
Prevent out of range error when calling `str_byteindex`.
Use `vim.str_byteindex(bufline, #bufline)` to cacluate utf length of `bufline`.
fix #20161
2022-10-14 02:12:46 -07:00
Christian Clason
4f305fba14
vim-patch:9.0.0731: clang-tidy configuration files are not recognized ( #20620 )
...
Problem: clang-tidy configuration files are not recognized.
Solution: Recognize clang-tidy files as yaml. (closes vim/vim#11350 )
af40f9af33
2022-10-12 15:23:42 +02:00
Christian Clason
8781213f00
vim-patch:9.0.0711: SubStation Alpha files are not recognized ( #20577 )
...
Problem: SubStation Alpha files are not recognized.
Solution: Add patterns for SubStation Alpha files. (closes vim/vim#11332 )
084f2620ec
2022-10-10 17:51:31 +02:00
Justin M. Keyes
a7a83bc4c2
fix(docs-html): update parser
...
- Improve generated HTML by updating parser which includes fixes for
single "'" and single "|":
https://github.com/neovim/tree-sitter-vimdoc/pull/31
- Updated parser also fixes the conceal issue for "help" highlight
queries https://github.com/neovim/tree-sitter-vimdoc/issues/23 by
NOT including whitespace in nodes.
- But this means we need to restore the getws() function which scrapes
leading whitespace from the original input (buffer).
2022-10-10 01:05:18 +02:00
Justin M. Keyes
09dffb9db7
docs: various #12823
...
- increase python line-length limit from 88 => 100.
- gen_help_html: fix bug in "tag" case (tbl_count => tbl_contains)
ref #15632
fix #18215
fix #18479
fix #20527
fix #20532
Co-authored-by: Ben Weedon <ben@weedon.email >
2022-10-09 05:21:52 -07:00
Folke Lemaitre
8c2226fc30
fix(lua): properly configure luacheck and remove local vim = ...
lines ( #20551 )
2022-10-09 12:40:56 +02:00
ObserverOfTime
b05e10ef72
vim-patch:9.0.0692: PoE filter files are not recognized ( #20542 )
...
Problem: PoE filter files are not recognized.
Solution: Add a pattern to detect PoE filter files. (closes vim/vim#11305 )
b7f52f5659
2022-10-08 17:46:31 +02:00
lvimuser
0773a9ee3a
feat(lsp): support window/showDocument ( #19977 )
2022-10-08 10:22:25 +02:00
Folke Lemaitre
1da7b4eb69
feat: added support for specifying types for lua2dox
2022-10-06 15:42:21 +01:00
Folke Lemaitre
24a1c7f556
feat: added support for optional params to lua2dox
2022-10-06 15:38:28 +01:00
Folke Lemaitre
c8d1b9a2d6
docs: added proper annotations to functions in shared.lua
2022-10-06 15:38:27 +01:00
Elizabeth Paź
548a4e2587
docs(docstrings): fix runtime type annotations
2022-10-05 15:25:03 +02:00
August Masquelier
b075f49d92
feat(lsp): add bufnr option to lsp.start ( #20473 )
2022-10-04 20:44:19 +02:00
Raphael
a5e347ce1d
refactor(diagnostic): remove deprecated function ( #20423 )
2022-10-01 09:36:11 -06:00
Mathias Fußenegger
e54541f7f9
refactor(lsp): remove deprecated lsp functions ( #20421 )
2022-10-01 11:35:36 +02:00
dundargoc
df646572c5
docs: fix typos ( #20394 )
...
Co-authored-by: Raphael <glephunter@gmail.com >
Co-authored-by: smjonas <jonas.strittmatter@gmx.de >
Co-authored-by: zeertzjq <zeertzjq@outlook.com >
2022-09-30 09:53:52 +02:00
Jonas Strittmatter
33dd917d7f
fix(filetype): add missing return to changelog detection function ( #20403 )
2022-09-29 16:26:19 +02:00
Sergey Berezhnoy
94718e479d
fix(query): fix unnatural order for inherits in treesitter queries ( #20298 )
...
close #20297
2022-09-29 16:25:07 +02:00
Justin M. Keyes
16336c486e
feat(gen_help_html.lua): adapt to new parser
...
- adapt to parser changes from https://github.com/vigoux/tree-sitter-vimdoc/pull/16
- numerous other generator improvements
2022-09-28 18:34:20 +02:00
ObserverOfTime
f46060c4cb
vim-patch:9.0.0604: luacheckrc file is not recognized ( #20371 )
...
Problem: Luacheckrc file is not recognized.
Solution: Use lua filetype for luacheckrc. (closes vim/vim#11236 )
49c311c9b1
2022-09-27 16:10:19 +02:00
Christian Clason
fe0727a1bf
vim-patch:9.0.0602: new TypeScript extensions are not recognized
...
Problem: New TypeScript extensions are not recognized.
Solution: Recognize .mts and .cts files. (closes vim/vim#11237 )
7fc6c0e4da
2022-09-27 13:04:34 +02:00
Christian Clason
e176f9dacf
vim-patch:9.0.0600: GYP files are not recognized
...
Problem: GYP files are not recognized.
Solution: Recognize GYP files. (closes vim/vim#11242 )
d324742292
2022-09-27 12:39:09 +02:00
Christian Clason
760a8754c0
vim-patch:9.0.0599: latexmkrc files are not recognized
...
Problem: Latexmkrc files are not recognized.
Solution: Use Perl filetype for latexmkrc files. (closes vim/vim#11241 )
cde0319385
2022-09-27 12:37:44 +02:00
Justin M. Keyes
63be765182
fix(docs): invalid :help links #20345
...
Fix those naughty single quotes.
closes #20159
2022-09-25 16:58:27 -07:00
Justin M. Keyes
4686bda06c
Merge #20331 refactor(treesitter)!: rename x_position => x_pos
2022-09-25 08:37:05 -04:00
Christian Clason
2a5692c646
vim-patch:9.0.0583: only recognizing .m3u8 files is inconsistent ( #20342 )
...
Problem: Only recognizing .m3u8 files is inconsistent.
Solution: Also matc .m3u files. (issue vim/vim#11204 )
b9725bc7f6
2022-09-25 13:59:11 +02:00
Justin M. Keyes
3169fc54a1
refactor(treesitter): rename x_position => x_pos
...
"pos" has a long precedent as "position" in vim, and there is no reason
to use a verbose name here.
2022-09-25 13:46:15 +02:00
Christian Clason
f8b656c582
vim-patch:9.0.0566: Nim files are not recognized ( #20317 )
...
Problem: Nim files are not recognized.
Solution: Add patterns for Nim files. (Nbiba Bedis, closes vim/vim#11205 )
9fd1583c83
2022-09-24 12:59:37 +02:00
shaunsingh
caf5738fa9
fix(lsp): create missing directory before creating file ( #19835 )
...
Co-authored-by: Mathias Fussenegger <f.mathias@zignar.net >
2022-09-24 12:46:21 +02:00
Christian Clason
24b5449b3d
vim-patch:9.0.0562: HSL playlist files are not recognized ( #20307 )
...
Problem: HSL playlist files are not recognized.
Solution: Add a pattern to recognize HSL palylist files. (Benoît Ryder,
closes vim/vim#11204 )
35fdd9a67d
2022-09-24 10:16:30 +02:00
Mike
14610332b2
fix(lsp): use correct function name in deprecated message ( #20308 )
...
fix: use correct function name in deprecated message
2022-09-23 19:20:56 -06:00
Lewis Russell
679f3072f6
Merge pull request #20103 from lewis6991/refactor/vim_opt
2022-09-22 13:59:04 +01:00
Jonas Strittmatter
b4b05f160d
feat(filetype): expand environment variables in filetype patterns ( #20145 )
2022-09-21 15:58:57 -06:00
ofwinterpassed
ec94014cd1
fix(lsp): out of bounds error in lsp.util.apply_text_edits ( #20137 )
...
Co-authored-by: Jonas Strittmatter <40792180+smjonas@users.noreply.github.com >
2022-09-20 22:14:58 +02:00
Christian Clason
ae30e388de
vim-patch:9.0.0510: Chatito files are not recognized ( #20260 )
...
Problem: Chatito files are not recognized.
Solution: Add a pattern for Chatito files. (closes vim/vim#11174 )
7c046ae99b
2022-09-20 14:10:00 +02:00