Christian Clason and Serhii Khoma
65b9499e4a
vim-patch:9.1.0840: filetype: idris2 files are not recognized
...
Problem: filetype: idris2 files are not recognized
Solution: detect '*.idr' files as idris2, '*.lidr' files as lidris2
and '*.ipkg' files as ipkg filetype (Serhii Khoma)
closes : vim/vim#15987
https://github.com/vim/vim/commit/c04bc64ba61f2386fafb086b47f16f122a0c779a
Co-authored-by: Serhii Khoma <srghma@gmail.com >
2024-11-05 08:31:32 +01:00
Yochem van Rosmalen
079e5f4f9b
feat(defaults): unimpaired empty line below/above cursor #30984
2024-11-04 06:06:18 -08:00
Famiu Haque
a27419f3fc
feat(options)!: disallow setting hidden options #28400
...
Problem:
There are three different ways of marking an option as hidden, `enable_if
= false`, `hidden = true` and `immutable = true`. These also have different
behaviors. Options hidden with `enable_if = false` can't have their value
fetched using Vim script or the API, but options hidden with `hidden = true` or
`immutable = true` can. On the other hand, options with `hidden = true` do not
error when trying to set their value, but options with `immutable = true` do.
Solution:
Remove `enable_if = false`, remove the `hidden` property for options, and use
`immutable = true` to mark an option as hidden instead. Also make hidden option
variable pointers always point to the default value, which allows fetching the
value of every hidden option using Vim script and the API. This does also mean
that trying to set a hidden option will now give an error instead of just being
ignored.
2024-11-04 05:00:12 -08:00
Lewis Russell
6e68fed374
feat(lsp): multi-client support for signature_help
...
Signatures can be cycled using `<C-s>` when the user enters the floating
window.
2024-11-04 11:55:39 +00:00
zeertzjq
99acc9de55
fix(treesitter): close InspectTree/EditQuery window on BufUnload ( #31036 )
...
Problem: The window opened :InspectTree or :EditQuery isn't closed when
the source buffer is unloaded, even though it is closed when
the buffer is hidden.
Solution: Also close the window on BufUnload.
2024-11-03 11:28:31 +08:00
zeertzjq and Yegappan Lakshmanan
3075c69ff0
vim-patch:9.1.0831: 'findexpr' can't be used as lambad or Funcref ( #31058 )
...
Problem: 'findexpr' can't be used for lambads
(Justin Keyes)
Solution: Replace the findexpr option with the findfunc option
(Yegappan Lakshmanan)
related: vim/vim#15905
closes : vim/vim#15976
https://github.com/vim/vim/commit/a13f3a4f5de9c150f70298850e34747838904995
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2024-11-03 10:06:41 +08:00
Christian Clason
2e3f1069f4
fix(health): better layout of vim.treesitter health check
...
Problem: Long lists of available parsers make it hard to see WASM
status.
Solution: Add separate headings for "treesitter features" (ABI, WASM)
and "treesitter parsers". Also add minimum supported ABI version.
2024-11-02 23:51:00 +01:00
Christian Clason and Riley Bruins
db46b58569
vim-patch:9.1.0826: filetype: sway files are not recognized
...
Problem: filetype: sway files are not recognized
Solution: detect '*.sw' files as sway filetype, include
a filetype plugin (Riley Bruins)
References:
https://github.com/FuelLabs/sway .
Comments taken from their syntax documentation. File extension taken
from the same documentation/GitHub's own recognition of these file types
closes : vim/vim#15973
https://github.com/vim/vim/commit/84b5b1c660beb2f9e27de70687e41d39a023ae81
Co-authored-by: Riley Bruins <ribru17@hotmail.com >
2024-11-02 23:33:38 +01:00
zeertzjq
3688a33354
fix(lua): show stacktrace for error in vim.on_key() callback ( #31021 )
2024-11-02 10:11:06 +08:00
zeertzjq and Christian Brabandt
7bf3a616e1
vim-patch:b5e7da1: runtime(doc): mention 'iskeyword' at :h charclass() ( #31026 )
...
fixes : vim/vim#15965
https://github.com/vim/vim/commit/b5e7da1f27241f7d770d342009e2fb443e45e6ce
Co-authored-by: Christian Brabandt <cb@256bit.org >
2024-11-01 18:22:08 +08:00
Lewis Russell
9b357e30fd
feat(lsp)!: remove client-server handlers from vim.lsp.handlers
...
- Partition the handlers in vim.lsp.handlers as:
- client to server response handlers (RCS)
- server to client request handlers (RSC)
- server to client notification handlers (NSC)
Note use string indexes instead of protocol.methods for improved
typing in LuaLS (tip: use hover on RCS, RSC or NSC).
2024-11-01 09:17:39 +00:00
nikolightsaber and Nikolai Devolder
f54266dbed
fix(lsp): hover border type can be string ( #31013 )
...
Border type can also be a string as defined in `api-win_config`
Co-authored-by: Nikolai Devolder <nikolai.devolder@yamabiko.eu >
2024-11-01 10:03:09 +01:00
errael
b34e137e43
feat(lua): allow vim.on_key() callback to consume the key ( #30939 )
2024-11-01 09:11:15 +08:00
Lewis Russell
be04bbf781
refactor(loader): format annotations
2024-10-31 15:20:29 +00:00
Lewis Russell
086e598a6e
refactor(loader): use the term stat instead of hash
2024-10-31 15:20:29 +00:00
Lewis Russell
8d68d883a9
refactor(loader): remove Loader table and use locals
2024-10-31 15:20:29 +00:00
Lewis Russell
4a0010e267
refactor(loader): rename types
2024-10-31 15:20:29 +00:00
Lewis Russell
7ccdd9235a
refactor(loader): inline Loader.load into Loader.loadfile
2024-10-31 15:20:29 +00:00
Lewis Russell
ab2f2461b5
refactor(loader): simplify Loader.loader_lib
2024-10-31 15:20:27 +00:00
Lewis Russell
53536be62a
refactor(loader): simplify Loader.write/read
2024-10-31 15:02:12 +00:00
Lewis Russell
f8fc6cb157
perf(loader): reduce calls to Loader.cache_file
2024-10-31 15:02:08 +00:00
Lewis Russell
03118c46ab
refactor(loader): remove unused _topmods
2024-10-31 14:15:09 +00:00
Lewis Russell
1d4ba8c1ed
fix: another round of type annotation fixes
2024-10-31 11:55:23 +00:00
Christian Clason and Xudong Zheng
82e5066a7f
vim-patch:9.1.0823: filetype: Zephyr overlay files not recognized
...
Problem: filetype: Zephyr overlay files not recognized
Solution: detect '*.overlay' files as dts filetype,
include syntax tests for DTS files
(Xudong Zheng)
Reference:
https://docs.zephyrproject.org/latest/build/dts/howtos.html
closes : vim/vim#15963
https://github.com/vim/vim/commit/a68bd6f089239a51ba90026b18109707e601b107
Co-authored-by: Xudong Zheng <7pkvm5aw@slicealias.com >
2024-10-31 10:24:37 +01:00
notomo
b4599acbf8
fix(lsp): correct hover result handling ( #30995 )
...
Problem: vim.lsp.buf.hover() displays "No information available" when client_id
is not 1.
Solution: use vim.tbl_isempty(tbl) instead of #tbl==0
2024-10-30 16:57:33 +01:00
Gregory Anders
ff93cccbc1
fix(defaults): omit extraneous info from unimpaired mapping errors ( #30983 )
2024-10-29 10:06:14 -05:00
Kai Moschcau
4c7f5032af
docs(options): shell-powershell #30969
...
`-NonInteractive` at least somewhat hints to pwsh/powershell, that shell
sessions created from :! are not interactive, though even that is not
foolproof, because powershell is weird.
`$PSStyle.OutputRendering='plaintext'` causes pwsh/powershell
to omit ANSI escape sequences in its output.
2024-10-29 07:36:58 -07:00
Lewis Russell
2cd6abf0d7
Merge pull request #30935 from lewis6991/feat/lsp_multi_hover
2024-10-29 09:51:14 +00:00
Lewis Russell
8260e4860b
feat(lsp)!: multiple client support for vim.lsp.buf.hover()
...
Deprecate `vim.lsp.handlers.hover` and `vim.lsp.handlers['textDocument/hover']`
2024-10-29 09:06:05 +00:00
Lewis Russell
1471dfc859
refactor(lsp): buf_request_all
2024-10-29 09:06:05 +00:00
zeertzjq
60b3ccd850
vim-patch:9.1.0821: 'findexpr' completion doesn't set v:fname to cmdline argument
...
Problem: 'findexpr' completion doesn't set v:fname to cmdline argument.
Solution: Set v:fname to the cmdline argument as-is (zeertzjq).
closes : vim/vim#15934
https://github.com/vim/vim/commit/20e045f78148c0ef0143c33ffe686fee72d29376
2024-10-29 08:20:00 +08:00
zeertzjq and Yegappan Lakshmanan
378d9135e7
vim-patch:9.1.0810: cannot easily adjust the |:find| command
...
Problem: cannot easily adjust the |:find| command
Solution: Add support for the 'findexpr' option (Yegappan Lakshmanan)
closes : vim/vim#15901
closes : vim/vim#15905
https://github.com/vim/vim/commit/aeb1c97db5b9de4f4903e7f288f2aa5ad6c49440
Co-authored-by: Yegappan Lakshmanan <yegappan@yahoo.com >
2024-10-29 08:20:00 +08:00
Nikita Revenco
0b7cc014fc
feat(defaults): map gO to LSP document_symbol #30781
2024-10-28 06:29:29 -07:00
Maria José Solano
0086ee90dd
fix(lsp): list all workspace folders in healthcheck #30966
2024-10-28 06:14:56 -07:00
Donatas
a9e725b26e
feat(diagnostics)!: sort underline severity_sort ( #30898 )
...
feat(diagnostics)!: sort underline with severity_sort
BREAKING CHANGE: underline will be applied with a higher value than `vim.hl.priorities.diagnostics`
2024-10-27 11:36:39 -05:00
Gregory Anders
adf7c98d60
fix(lsp): compare URI instead of workspace folder name ( #30962 )
...
The workspace folder name is meant to be a human-readable name which is
only used in the UI. Comparing the name against root_dir is thus not
a valid comparison. Instead, we should compare the workspace folder's
URI against the root dir URI.
2024-10-27 11:35:45 -05:00
Maria José Solano
123c0b6b4e
docs(lsp): document alternative for vim.lsp.util.jump_to_location
2024-10-27 09:26:52 +00:00
Riley Bruins
f60a1f9059
docs(treesitter): specify predicate boolean return value
2024-10-27 09:25:07 +00:00
Tristan Knight
25b53b593e
refactor(lsp): drop str_byteindex/str_utfindex wrappers #30915
...
* deprecate old signatures
* move to new str_byteindex/str_utfindex signature
* use single-underscore name (double-underscore is reserved for Lua itself)
2024-10-26 07:38:25 -07:00
Maria José Solano
01739d4673
fix(defaults): missing ]Q/[Q unimpaired mappings #30943
2024-10-25 06:45:27 -07:00
Lewis Russell
54249d051c
feat(lsp): deprecate vim.lsp.buf.completion
...
Use `vim.lsp.completion.trigger()` instead'
2024-10-24 16:36:14 +01:00
Lewis Russell
7a7747f1e4
feat(lsp): deprecate execute_command with client:exec_cmd
2024-10-24 15:37:34 +01:00
Lewis Russell
39d79efa1e
fix(lsp): better multi-client support for callHierarchy
...
Only ever display a dialogue box once.
Switch from vim.fn.inpulist to vim.ui.select
refactor(lsp): merge call and type hierarchy functions
2024-10-24 13:15:25 +01:00
Lewis Russell
c8d7d65679
fix(lsp): use correct method for prepareTypehierarchy
...
Regression from #30902
2024-10-24 13:15:25 +01:00
Mathias Fussenegger
3c51058d76
fix(lsp): set tagstack on jump via goto methods
...
Follow up to https://github.com/neovim/neovim/pull/30877
Fixes https://github.com/neovim/neovim/issues/30926
2024-10-24 13:43:49 +02:00
Lewis Russell
2dcbfe78fc
fix(lsp.buf): use correct offset_encoding for all requests
...
Problem:
`lsp.buf_request` send the same params to all servers and many
calls to this pass PositionalParams which depends on the clients
offset_encoding. This can result with incorrect params being sent
to a server.
Solution:
`lsp.buf_request` `params` argument can now be passed as a function
which takes the client as the first argument. This is used in
lsp/buf.lua to construct correct params for each client request.
2024-10-24 10:53:06 +01:00
Lewis Russell
3275ae830d
fix(lsp.protocal): improve typing of constants
2024-10-24 10:53:03 +01:00
Lewis Russell
2ee39b7eb4
refactor(lsp.buf): remove buf_request wrapper
2024-10-24 09:58:22 +01:00
Lewis Russell
ad4e14c201
refactor(lsp.buf): use alias for vim.lsp
2024-10-24 09:55:23 +01:00
Mathias Fussenegger
008782208d
fix(lsp): handle mixed encoding in tagfunc params
...
Relates to https://github.com/neovim/neovim/issues/30034
2024-10-24 09:56:58 +02:00