Christian Clason
f1bf7a5fda
fix(filetype): don't pass empty string to detect
...
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
(cherry picked from commit 8bfde69007
)
2023-01-27 23:20:08 +00:00
github-actions[bot]
8bbed45e10
[Backport release-0.8] fix(lsp): check active_clients table length first ( #21593 )
...
Co-authored-by: Mathias Fußenegger <mfussenegger@users.noreply.github.com >
Co-authored-by: Raphael <glephunter@gmail.com >
2022-12-31 13:22:03 +01:00
Mathias Fußenegger
48f0545594
fix(diagnostic): clear stale cache on reset ( #21454 )
...
The BufWipeout autocmd is not 100% reliable and may leave stale entries
in the cache. This is sort of a hack/workaround to ensure
`vim.diagnostic.reset` calls don't fail if there are stale cache entries
but instead clears them
Fixes errors like
Error executing vim.schedule lua callback: /usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: Invalid buffer id: 22
stack traceback:
[C]: in function 'nvim_exec_autocmds'
/usr/share/nvim/runtime/lua/vim/diagnostic.lua:1458: in function 'reset'
(cherry picked from commit 1743359235
)
2022-12-18 19:25:20 +01:00
github-actions[bot]
922a3c33f1
[Backport release-0.8] fix(lsp): ensure open_logfile is safe for fast events ( #21290 )
...
fix(lsp): ensure open_logfile is safe for fast events
Closes https://github.com/neovim/neovim/issues/21052
(cherry picked from commit a4100e1072
)
Co-authored-by: Mathias Fussenegger <f.mathias@zignar.net >
2022-12-04 19:05:27 +01:00
Lewis Russell
3d0ddd2d1f
feat(spell): support nospell in treesitter queries
...
(cherry picked from commit 07eb4263ca
)
2022-11-13 10:05:50 +00:00
zeertzjq
95e1978959
fix(paste): feed keys as typed in cmdline mode
...
(cherry picked from commit c12add7dfa
)
2022-11-06 04:43:38 +00:00
github-actions[bot]
5a14c820a9
[Backport release-0.8] docs: fix/remove invalid URLs ( #20735 )
...
docs: fix/remove invalid URLs
(cherry picked from commit ec1e71109c
)
Co-authored-by: Justin M. Keyes <justinkz@gmail.com >
2022-10-19 05:06:20 -07:00
Justin M. Keyes
5e88506508
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).
(cherry picked from commit a7a83bc4c2
)
2022-10-12 12:09:10 +00:00
github-actions[bot]
f294712d8c
[Backport release-0.8] doc ( #20616 )
...
docs: various
- 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 >
(cherry picked from commit f37cd2bb15
)
Co-authored-by: Justin M. Keyes <justinkz@gmail.com >
2022-10-12 05:08:18 -07: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
Lewis Russell
abe2d90693
feat(lua): move compat module from runtime to test ( #20257 )
2022-09-20 11:15:32 +01:00
Lewis Russell
e762158305
docs(lua): opts in vim.keymap.{set,del}
can be optional ( #20255 )
2022-09-20 10:42:45 +01:00
Mathias Fußenegger
10196f1b46
fix(lsp): support false
result in handlers ( #20252 )
...
Closes https://github.com/neovim/neovim/issues/20111
2022-09-20 09:28:23 +02:00
Christian Clason
8dc61713d9
vim-patch:9.0.0497: LyRiCs files are not recognized ( #20239 )
...
Problem: LyRiCs files are not recognized.
Solution: Add a pattern to detect LyRiCs files. (closes vim/vim#11155 )
65ee49decf
2022-09-18 14:16:24 +02:00
Christian Clason
e512d3ecf2
vim-patch:9.0.0479: in :def function all closures in loop get the sam… ( #20220 )
...
vim-patch:9.0.0479: in :def function all closures in loop get the same variables
Problem: In a :def function all closures in a loop get the same variables.
Solution: Use a separate list of variables for LOADOUTER and SAVEOUTER.
1aea184a0d
(note: patch description is wrong)
2022-09-16 17:52:08 +02:00
Christian Clason
9ec4b20be6
fix(treesitter): return full metadata for get_captures_at_position ( #20203 )
...
fix(treesitter): get_captures_at_position returns metadata
Return the full `metadata` table for the capture instead of just the
priority.
Further cleanup of related docs.
2022-09-16 09:05:05 +02:00
Gregory Anders
982fef6018
fix(diagnostic): populate data key in DiagnosticChanged autocmd in reset ( #20207 )
...
Follow up to #20173 .
2022-09-15 11:03:07 -06:00
Christian Clason
ddb762f401
docs(treesitter): clean up and update treesitter.txt ( #20142 )
...
* add type annotations to code
* clean up and expand static documentation
* consistent use of tags for static and generated docs
2022-09-14 11:08:31 +02:00
Mathias Fußenegger
a8c9e721d9
feat(fs): extend fs.find to accept predicate ( #20193 )
...
Makes it possible to use `vim.fs.find` to find files where only a
substring is known.
This is useful for `vim.lsp.start` to get the `root_dir` for languages
where the project-file is only known by its extension, not by the full
name.
For example in .NET projects there is usually a `<projectname>.csproj`
file in the project root.
Example:
vim.fs.find(function(x) return vim.endswith(x, '.csproj') end, { upward = true })
2022-09-13 14:16:20 -06:00
Gregory Anders
1970d2ac43
feat(diagnostic): pass diagnostics as data to DiagnosticChanged autocmd ( #20173 )
2022-09-13 08:33:39 -06:00
Christian Clason
fd70e2bff2
Merge pull request #20141 from vigoux/ts-self-inherits
...
fix(treesitter): prevent endless loop on self-inheritence
docs(treesitter): suggest using extends to extend queries
2022-09-12 17:35:49 +02:00
Christian Clason
afe01842ef
vim-patch:9.0.0448: SubRip files are not recognized ( #20167 )
...
Problem: SubRip files are not recognized.
Solution: Add a pattern for SubRip. (closes vim/vim#11113 )
5a4eb55122
2022-09-12 15:12:39 +02:00
Christian Clason
f98cff9575
vim-patch:9.0.0443: blueprint files are not recognized ( #20155 )
...
Problem: Blueprint files are not recognized.
Solution: Add a pattern for blueprint files. (Gabriele Musco, closes vim/vim#11107 )
cce82a55b8
2022-09-11 16:07:54 +02:00
Thomas Vigouroux
1939518eba
fix(treesitter): prevent endless loop on self-inheritence
...
Fixes #20139
2022-09-11 08:16:50 +02:00
Gregory Anders
9b4cab0126
fix(lsp): schedule removal of client object ( #20148 )
...
The execution of the LspDetach autocommands in the LSP client's on_exit
function are scheduled on the event loop to avoid making API calls in a
fast context; however, this means that by the time the LspDetach
autocommands finally run the client object has already been deleted.
To address this, we also schedule the deletion of the client on the
event loop so that it is guaranteed to occur after all of the LspDetach
autocommands have fired.
2022-09-10 18:56:29 -06:00
Christian Clason
40f9f479b7
vim-patch:9.0.0434: gitignore files are not recognized ( #20143 )
...
Problem: gitignore files are not recognized.
Solution: Add patterns for the gitignore filetype. (closes vim/vim#11102 )
9ba2786f15
2022-09-10 13:30:54 +02:00
Christian Clason
9b0e1256e2
vim-patch:9.0.0427: Drupal theme files are not recognized ( #20138 )
...
Problem: Drupal theme files are not recognized.
Solution: Use php filetype for Drupl theme files. Remove trailing spaces.
(Rodrigo Aguilera, closes vim/vim#11096 )
8995c4cd4e
2022-09-09 18:48:12 +02:00
Christian Clason
ad2d6a624b
vim-patch:9.0.0424: gitattributes files are not recognized ( #20134 )
...
Problem: gitattributes files are not recognized.
Solution: Add patterns to match gitattributes files. (closes vim/vim#11085 )
7d56cfc861
2022-09-09 17:53:15 +02:00
Lewis Russell
038c711539
refactor(vim.opt): de-nest code
2022-09-09 12:38:15 +01:00
Lewis Russell
9272d20ea4
refactor(vim.opt): use local function syntax
2022-09-09 12:38:15 +01:00
Lewis Russell
ad972990ad
refactor(vim.opt): optimize append/prepend/remove
2022-09-09 12:38:15 +01:00