danilax999
469e6bfc56
fix(treesitter): use capture metadata range if exists
...
use `treesitter.get_range` instead of inline expression
2023-04-04 12:26:21 +01:00
Christian Clason
b83f949fd9
build(deps): bump tree-sitter to v0.20.8 ( #22882 )
2023-04-04 12:16:26 +02:00
zeertzjq
7c8c155073
fix(api): avoid double hit-enter prompt with nvim_err_writeln ( #22879 )
2023-04-04 08:59:11 +08:00
dundargoc
eb1da498d6
build(windows): work around luarocks not finding its own md5sum
...
Luarocks is unable to find its own md5sum due to these reasons listed in
the comment https://github.com/luarocks/luarocks/issues/1443 .
The pull request https://github.com/luarocks/luarocks/pull/1498 resolves
this issue, but in the meantime we can work around it by resetting the
value of MD5sum to "md5sum".
2023-04-03 21:12:42 +02:00
Christian Clason
e30cc8be19
vim-patch:9.0.1438: .fs files are falsely recognized as forth files ( #22871 )
...
Problem: .fs files are falsely recognized as forth files.
Solution: Check 100 lines for something that looks like forth. (Johan
Kotlinski, closes vim/vim#12219 , closes vim/vim#11988 )
065088d554
Co-authored-by: Johan Kotlinski <kotlinski@gmail.com>
2023-04-03 16:27:49 +02:00
bfredl
f34b849a22
Merge pull request #22847 from luukvbaal/redrstatus
...
fix(ui): ruler is not redrawn in cmdline with redrawstatus
2023-04-03 16:02:44 +02:00
Christian Clason
bc96bda5a2
build(deps): bump tree-sitter-vimdoc to v2.0.0 ( #22870 )
2023-04-03 14:08:00 +02:00
bfredl
f28da92b46
Merge pull request #22783 from luukvbaal/inspect
...
refactor(lua): get all extmarks instead of iterating over namespaces
2023-04-03 13:08:28 +02:00
Jay
f4cbe03606
fix(test): fix C imports on macOS arm64
...
System headers on macOS arm64 contain 128-bit numeric types. These types
are built into clang and GCC as extensions. Unfortunately, they break
the LuaJIT C importer. Define dummy typedefs for the missing numeric
types to satisfy the ffi C importer.
2023-04-03 10:27:14 +01:00
zeertzjq
10baf89712
vim-patch:9.0.1439: start Insert mode when accessing a hidden prompt buffer ( #22867 )
...
Problem: Start Insert mode when accessing a hidden prompt buffer.
Solution: Call leaving_window() in aucmd_restbuf(). (Thorben Tröbst,
closes vim/vim#12148 , closes vim/vim#12147 )
cde8de0345
Cherry-pick test_prompt_buffer.vim changes from patch 9.0.0631.
Co-authored-by: orbital <orbital@holgerines.de>
2023-04-03 08:36:14 +08:00
Luuk van Baal
a930245557
refactor(lua): get all marks instead of iterating over namespaces
...
Inspector now also includes highlights set in anonymous namespaces.
Close #22732
2023-04-02 19:14:23 +02:00
Alexandre Teoi
53f36806f1
feat(packaging): add start menu and desktop shortcuts on Windows
...
- Create start menu and desktop shortcuts
- Set installation context to per-user, allowing non-administrative users to
install the MSI package
- <https://learn.microsoft.com/windows/win32/msi/installation-context >
- <https://learn.microsoft.com/windows/win32/msi/allusers >
Resolves #18119
2023-04-02 18:36:35 +02:00
dundargoc
598ff4f7d1
ci: update reviewers
2023-04-02 17:37:05 +02:00
zeertzjq
269dd747b6
refactor(defaults)!: change default 'commentstring' value to empty ( #22862 )
2023-04-02 23:01:48 +08:00
Luuk van Baal
c8a28b847e
fix(ui): ruler is not redrawn in cmdline with redrawstatus
2023-04-02 15:24:55 +02:00
bfredl
3a4db8154f
Merge pull request #22844 from luukvbaal/stlrecording
...
fix(ui): recording change doesn't trigger statusline redraw
2023-04-02 13:37:24 +02:00
bfredl
da6a42cdaf
Merge pull request #22778 from luukvbaal/getext
...
feat(extmarks): extend nvim_buf_get_extmarks()
2023-04-02 12:00:32 +02:00
dundargoc
d510bfbc8e
refactor: remove char_u ( #22829 )
...
Closes https://github.com/neovim/neovim/issues/459
2023-04-02 16:11:42 +08:00
Christian Clason
9084948893
Merge pull request #22832 from clason/bump-Luv
...
build(deps): bump luv to HEAD
docs(luvref): update to version bump
2023-04-01 18:07:11 +02:00
Christian Clason
4720f0a662
docs(luvref): update to version bump
2023-04-01 17:26:09 +02:00
Christian Clason
2d840b6b77
build(deps): bump Luv to HEAD - 093a977b8
2023-04-01 17:26:04 +02:00
Gregory Anders
643c0ed571
feat: allow function passed to defaulttable to take an argument ( #22839 )
...
Pass the value of the key being accessed to the create function, to
allow users to dynamically generate default values.
2023-04-01 08:02:58 -06:00
Sizhe Zhao
6a4ebf894f
fix(health): stop using deprecated ts.language.inspect_language() ( #22850 )
2023-04-01 15:47:20 +02:00
Christian Clason
19110eddb9
Merge pull request #22837 from clason/ts-sync
...
build(deps): bump tree-sitter-viml to HEAD
fix(tests): adapt treesitter/highlight_spec priority test
fix(treesitter): update queries from nvim-treesitter
refactor(treesitter)!: rename help parser to vimdoc
docs(treesitter): add query injections
2023-04-01 15:39:25 +02:00
zeertzjq
4f66530af1
vim-patch:9.0.1434: crash when adding package already in 'runtimepath' ( #22849 )
...
Problem: Crash when adding package already in 'runtimepath'.
Solution: Change order for using 'runtimepath' entries. (closes vim/vim#12215 )
39c9ec16ea
2023-04-01 21:34:55 +08:00
Christian Clason
438c3419df
docs(treesitter): add query injections
2023-04-01 15:07:16 +02:00
Christian Clason
d7f7450017
refactor(treesitter)!: rename help parser to vimdoc
2023-04-01 15:07:16 +02:00
Luuk van Baal
2a10f64e25
feat(extmarks): extend nvim_buf_get_extmarks()
...
Problem: Can not get all extmarks in a buffer. Properties are missing
from the details array.
Solution: Allow getting all extmarks in a buffer by supplying a -1
"ns_id". Add missing properties to the details array.
2023-04-01 13:59:03 +02:00
Christian Clason
2a298f2e48
fix(treesitter): update queries from nvim-treesitter
...
remove self-injection for C preprocessor macros (can be very slow)
2023-04-01 12:19:15 +02:00
Christian Clason
90fdaf55c9
fix(tests): adapt treesitter/highlight_spec priority test
...
Still relied on the old `@Foo`->`Foo` capture to highlight mechanism;
use capture with default highlight instead.
2023-04-01 12:19:15 +02:00
Luuk van Baal
e3a3d30063
fix(ui): recording change doesn't trigger statusline redraw
2023-04-01 04:23:25 +02:00
ii14
75e1b1d5c9
refactor: use bool type for global variables ( #22842 )
2023-04-01 08:56:44 +08:00
ii14
d5f6176e6d
refactor: add const and remove unnecessary casts ( #22841 )
2023-04-01 08:49:51 +08:00
Christian Clason
dee559d744
build(deps): bump tree-sitter-viml to HEAD
2023-03-31 15:58:19 +02:00
Lewis Russell
83bfd94d1d
refactor(loader): cache hash information
...
Whenever we run fs_stat() on a path, save this information in the loader
so it can be re-used.
- Loader.loadfile: Remove arguments `hash` as it is no longer needed.
- Loader.loader: Use _G.loadstring instead of Loader.load
This allows plugins to wrap loadstring to inspection and profiling
- factor out read file logic
2023-03-31 13:05:22 +01:00
Sindre T. Strøm
b34097fe6d
fix(api): return both link and attributes with nvim_get_hl ( #22824 )
...
Problem: No way to get the actual highlight attributes for a linked
group through |nvim_get_hl()| (not the attributes from the link target).
Solution: Return the actual attributes as well as the link target name.
2023-03-31 12:52:53 +02:00
Akin
ed10e4ef60
fix(diagnostic): use correct field name for tags ( #22835 )
...
LSP tags are added to the diagnostic as "tags" but referred to as "_tags"
in the diagnostic underline handler
2023-03-31 11:23:19 +01:00
Lewis Russell
4cff3aceea
fix(loader): disable profiling by default
2023-03-31 09:43:13 +01:00
Lewis Russell
5bf2f4b3c2
fix(filetype): make recursive work...again ( #22826 )
2023-03-30 17:24:50 +01:00
Lewis Russell
226a6c3eae
feat(diagnostic): add support for tags
...
The LSP spec supports two tags that can be added to diagnostics:
unnecessary and deprecated. Extend vim.diagnostic to be able to handle
these.
2023-03-30 14:49:58 +01:00
Lewis Russell
8fa7d833cf
Merge pull request #22791 from lewis6991/refactor/loadermisc
...
refactor(loader): changes
2023-03-30 13:57:59 +01:00
Lewis Russell
e5fa2e3a5d
fix(autocmd): handle recursion for force set ( #22820 )
2023-03-30 11:35:13 +01:00
Lewis Russell
61e54f2636
feat: add vim.treesitter.language.get_filetypes()
( #22643 )
2023-03-30 10:26:28 +01:00
Lewis Russell
8b7fb668e4
fix(filetype): avoid recursive FileType autocmds ( #22813 )
2023-03-29 19:54:12 +01:00
Christian Clason
92005db760
build(deps): switch to Launchpad for libvterm and libtermkey ( #22811 )
...
Problem: www.leonerd.org.uk is sometimes unreachable
Solution: switch to Launchpad URLs for libvterm (official page) and
libtermkey (source mirror for Ubuntu package)
2023-03-29 14:39:11 +02:00
Christian Clason
196f69909d
vim-patch:9.0.1430: Livebook files are not recognized ( #22808 )
...
Problem: Livebook files are not recognized.
Solution: Add a pattern for Livebook files. (Mathias Jean Johansen,
closes vim/vim#12203 )
6400203517
Co-authored-by: Mathias Jean Johansen <mathias@mjj.io>
2023-03-29 10:23:52 +02:00
Michal Liszcz
b7748662ed
fix(api): Use local LastSet structure in nvim_get_option_info ( #22741 )
...
fix(api): use local LastSet structure in nvim_get_option_info
* nvim_get_option_info is deprecated.
It is always using the global LastSet information as reported in #15232 .
* nvim_get_option_info2 is added.
The new function additionally accepts an 'opts' table {scope, buf, win}
allowing to specify the option scope and query local options from another
buffer or window.
2023-03-29 09:59:01 +02:00
dundargoc
eac75a971d
Merge pull request #22759 from dundargoc/build/wintools
2023-03-28 18:46:58 +02:00
dundargoc
81abd5c5c7
build: download wintools executables separately
...
The wintools executables are stored in a zip file, making it
inconvenient to bump these during releases. Instead, unpack the
executables in the deps repository and download each executable
separately.
2023-03-28 16:18:13 +02:00
dundargoc
b02ee27e51
build: drop curl.exe on Windows
...
Curl is already shipped by default on Windows 10 starting from versions
1803. As we already require version 1809 we can safely remove it.
2023-03-28 16:18:13 +02:00