Lewis Russell
34ac75b329
refactor: rename local API alias from a to api
...
Problem:
Codebase inconsistently binds vim.api onto a or api.
Solution:
Use api everywhere. a as an identifier is too short to have at the
module level.
2023-04-05 17:19:53 +01:00
Christian Clason
56e4d79b28
build(deps): switch vim parser to maintained fork ( #22896 )
...
Problem: tree-sitter-viml parser was not maintained and missing a
release, making it difficult for distros to package Neovim.
Solution: fork the parser under the neovim org, merge some outstanding
PRs, perform general cleanup, make a release, and use this for the
build.
2023-04-05 16:25:33 +02:00
bfredl
63bffae9e0
Merge pull request #22859 from luukvbaal/evalstc
...
feat(api): evaluate 'statuscolumn' with nvim_eval_statusline()
2023-04-05 15:02:22 +02:00
Michal Liszcz
999cb36c2b
refactor(lsp): do not parse verbose output when overwriting options ( #22810 )
2023-04-05 14:02:08 +02:00
Luuk van Baal
f0ac91c58b
feat(api): evaluate 'statuscolumn' with nvim_eval_statusline()
2023-04-05 12:36:47 +02:00
dundargoc
9d5cbd1b15
ci!: remove the .deb release ( #22773 )
...
Having multiple release artifacts per platform is a maintenance burden.
Furthermore, it is a maintenance burden that doesn't directly improve
the Nvim editor itself. The releases are meant to be a quick way for
users to try out and use neovim on their platform and was never intended
to be a buffet of releases for every conceivable setup.
Users are encouraged to the following replacements:
- Github action `action-setup-vim` to have neovim installed on their
PATH for their CI jobs. See https://github.com/rhysd/action-setup-vim .
- Use the appimage, either as is or by extracting it
- To use as is, run `chmod u+x nvim.appimage && ./nvim.appimage`
- If your system does not have FUSE you can extract the appimage with
`./nvim.appimage --appimage-extract && ./squashfs-root/usr/bin/nvim`
- Build it manually. See https://github.com/neovim/neovim/wiki/Building-Neovim .
Work on https://github.com/neovim/neovim/issues/22684
2023-04-05 09:22:29 +02:00
Lewis Russell
9e7426718b
feat(vim.diff): allow passing an integer for linematch
2023-04-04 23:59:39 +01:00
dundargoc
e826d09c18
fix(windows): consistent normalization in fs.find
...
vim.fs.find(".luacheckrc")
```
c:\\projects\\neovim/.luacheckrc # before
c:/projects/neovim/.luacheckrc # after
```
Co-authored-by: kylo252 <59826753+kylo252@users.noreply.github.com>
2023-04-04 23:37:46 +02:00
github-actions[bot]
872a534f6e
docs: regenerate
2023-04-04 23:10:17 +02:00
Gregory Anders
b479e3a95d
feat(lsp): create default link from @lsp.type.comment to Comment ( #22888 )
2023-04-04 14:06:58 -06:00
dundargoc
743860de40
test: replace lfs with luv and vim.fs
...
test: replace lfs with luv
luv already pretty much does everything lfs does, so this duplication
of dependencies isn't needed.
2023-04-04 21:59:06 +02:00
Lewis Russell
b1de4820b7
refactor(treesitter): move inspect_tree impl
2023-04-04 20:47:15 +01:00
dundargoc
81f2bce775
build: cmake cleanup
...
- Change libtermkeyCMakeLists.txt to LibtermkeyCMakeLists.txt
- Remove duplicate mark_as_advanced calls in FindLibuv.cmake
- Fix "Enabling Clang sanitizer" messages as it's no longer clang-only
- Simplify parser installation syntax
- Rename tree-sitter to treesitter
2023-04-04 19:27:21 +02:00
dundargoc
a5c572bd44
docs: fix typos
...
Co-authored-by: Gregory Anders <greg@gpanders.com>
Co-authored-by: Raphael <glephunter@gmail.com>
Co-authored-by: C.D. MacEachern <craig.daniel.maceachern@gmail.com>
Co-authored-by: himanoa <matsunoappy@gmail.com>
2023-04-04 19:07:33 +02:00
Lewis Russell
b75acd2f94
fix(treesitter): disable folding in inspect_tree() ( #22885 )
2023-04-04 14:07:27 +02:00
Lewis Russell
090ade4af6
refactor(treesitter): delegate region calculation to treesitter ( #22576 )
2023-04-04 13:58:16 +02:00
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