| Commit message (Collapse) | Author | Age |
... | |
| | | | |
|
| | | |
| | | |
| | | |
| | | | |
This is the first step towards language injection using treesitter.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
was fixed in vim patch c572da5f67aa5cdbbc127fc6f1d0a42e38468325
and forgot in corresponding vim patch 8c3377ee76e5cc4f5a4228f216bde1d03b496d69.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Since we don't know what the server considers to be a symbol, `cword` is
the best bet in most cases.
Co-authored-by: Cédric Barreteau <>
|
|\ \ \ \
| |_|/ /
|/| | | |
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Also, factor out a `vim.lsp.util.get_effective_tabstop()` helper and add
tests for it.
|
|\ \ \ \ |
|
| | |/ /
| |/| |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Problem: Syntax foldlevel is taken from the start of the line.
Solution: Add ":syn foldlevel" to be able to use the minimal foldlevel in the line.
https://github.com/vim/vim/commit/e35a52aee718c881bdfa69a47a1068df6ab6c60a
With `foldmethod=syntax` the foldlevel of a line is computed based
on syntax items on the line. Previously we always used the level
of the syntax item containing the start of the line. This works
well in cases such as:
if (...) {
...
}
else if (...) {
...
}
else {
...
}
which folds like this:
+--- 3 lines: if (...) {---------------------------
+--- 3 lines: else if (...) {----------------------
+--- 3 lines: else {-------------------------------
However, the code:
if (...) {
...
} else if (...) {
...
} else {
...
}
folds like this:
+--- 7 lines: if (...) {---------------------------
We can make the latter case fold like this:
+--- 2 lines: if (...) {---------------------------
+--- 2 lines: } else if (...) {--------------------
+--- 3 lines: } else {-----------------------------
by choosing on each line the lowest fold level that is followed
by a higher fold level.
Add a syntax command
:syntax foldlevel [start | minimum]
to choose between these two methods of computing the foldlevel of
a line.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Problem: Not all systemd file types are recognized.
Solution: Match several more files. (Guido Cella, closes vim/vim#6319)
https://github.com/vim/vim/commit/ef6d86c173becdf82b7a9a1329342c9368340def
|
|/ / /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The client creates buffers on the fly to be able to apply text edits on
files that weren't previously open, which is great, but it uses the
bufadd() function, which creates unlisted buffers and can lead to a
weird experience in the text editor. Setting the buffer to buflisted
fixes this.
Closes #12488.
Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
|
| | |
| | |
| | |
| | |
| | |
| | | |
Problem: SConstruct file type not recognized.
Solution: Use python for SConstruct files. (Roland Hieber)
https://github.com/vim/vim/commit/ad72350360d1a68d251da62a6e8610950926278c
|
| | |
| | |
| | |
| | |
| | |
| | | |
Problem: Raku file extension not recognized. (Steven Penny)
Solution: Recognize .raku and .rakumod. (closes vim/vim#6255)
https://github.com/vim/vim/commit/a65d8b5bb9e9267c6e4500c67d26c839a64f30eb
|
| | |
| | |
| | |
| | |
| | |
| | | |
Problem: Not all desktop files are recognized.
Solution: Add the *.directory pattern. (Eisuke Kawashima, closes vim/vim#3317)
https://github.com/vim/vim/commit/f1f0ff9557353c9a452aac8540411a88cf2da47c
|
| | |
| | |
| | |
| | |
| | |
| | | |
Problem: Terminal debugger plugin may hang.
Solution: Wait longer when still reading symbols.
https://github.com/vim/vim/commit/19c8fe1925f4f7ffa1cc46e64d8bb8b1665ac437
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Problem: Script filetype detection trips over env -S argument.
Solution: Remove "-S" and "--ignore-environment". (closes vim/vim#5013)
Add tests.
https://github.com/vim/vim/commit/b5e18f29fac9253b0ccf1fde5e74bff72fa1ba60
|
| | |
| | |
| | |
| | |
| | |
| | | |
Problem: Some sshconfig and ssdhconfig files are not recognized.
Solution: Add filetype patterns.
https://github.com/vim/vim/commit/da84ac2a6f467d0b9eddcc8709433cda75d16a41
|
|/ /
| |
| |
| |
| |
| | |
Problem: Custom plugins loaded with --clean.
Solution: Do not include the home directory in 'runtimepath'.
https://github.com/vim/vim/commit/072687032683b1994d25a114893d9a6f8bc36612
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* lsp: support custom hl groups in show_line_diagnostics
Closes #12472.
* runtime: add docs for the new lsp highlight groups
Co-authored-by: francisco souza <fsouza@users.noreply.github.com>
|
| |
| |
| |
| | |
vim/vim@388a5d4f20b4b64341d1604aa238cab85827b892
|
| |
| |
| |
| | |
vim/vim@65e0d77a66b7
|
| |
| |
| |
| | |
vim/vim@388a5d4f20b4
|
| |
| |
| |
| | |
vim/vim@1d9215b9aaa1
|
|\ \ |
|
| | | |
|
|\ \ \
| | | |
| | | | |
lsp: even if contents before change is 0 byte, request to server
|
| | | |
| | | |
| | | |
| | | | |
fix: https://github.com/neovim/neovim/issues/12414
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
LspDiagnosticInformation -> LspDiagnosticsInformation
LspDiagnosticInformationSign -> LspDiagnosticsInformationSign
LspDiagnosticHint -> LspDiagnosticsHint
LspDiagnosticHintSign -> LspDiagnosticsHintSign
|
| |_|/
|/| |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
According to the LSP spec[1], multiple edits can have the same starting
position, and if that is the case, they should be applied in the order
as they come in the array.
The implementation uses a reverse sort to not interfere with non applied
edits, but failed to take into account the spec.
[1] https://microsoft.github.io/language-server-protocol/specifications/specification-3-14/#textedit
|
| | |
| | |
| | | |
else popup window remains open when switching buffer.
|
|/ /
| |
| |
| | |
textDocumentSync.save.includeText only if table. (#12450)
|
| |
| |
| |
| |
| |
| |
| | |
When UV_OVERLAPPED_PIPE was used for the pipe passed to the child process, a
problem occurred with the standard input of the .Net Framework application
(#11809). Therefore, add the overlapped option to jobstart() and change it so
that it is set only when necessary
|
|\ \
| | |
| | | |
treesitter: update runtime
|
| | | |
|
|\ \ \
| | | |
| | | | |
[RDY]vim-patch:8.0.1564,8.1.{917,1895,2018,2335},8.2.{89,491,873,892,905}
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Problem: Cannot recognize a <script> mapping using maparg().
Solution: Add the "script" key. (closes vim/vim#5873)
https://github.com/vim/vim/commit/2da0f0c445da3c9b35b2a0cd595d10e81ad2a6f9
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Problem: A .jl file can be sawfish (lisp) or Julia.
Solution: Do not recognize *.jl as lisp, since it might be Julia.
(closes vim/vim#6178)
https://github.com/vim/vim/commit/2891459b81a21dbd2802ef1ae106c6680f085899
|
|\ \ \ \
| |/ / /
|/| | | |
runtime: fix remote plugin command fails at some case
|
| | | |
| | | |
| | | |
| | | | |
fixes #12410
|
| | | | |
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
* take wrapping into account when computing float height
* factor out size calculation
* add test
* accept and pass through opts.wrap_at in floating_preview
* make padding configurable
* slightly refactor fancy_floating_markdown to make use of make_position
* padding using string.format
* move trim and pad to separate function
* nit
Co-authored-by: Hirokazu Hata <h.hata.ai.t@gmail.com>
* remove mention of backward compat
* make lint happy
Co-authored-by: Hirokazu Hata <h.hata.ai.t@gmail.com>
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
server before making `request` (#12421)
* Add check for typeDefinition support in vim lsp server
* Check for typeDefinitionProvider in server
* Check for declarationProvider in server
* Add check for client support
* Fix typo
|
| | | |
| | | |
| | | |
| | | |
| | | | |
* lua: fix behavior when split empty string
* test: lsp.util.apply_text_edits with an empty edit
|
|\ \ \ \
| | | | |
| | | | | |
Fix LSP multibyte indexing
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Takes the entire LSP position instead of line/col
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
* propagate visual selection to textyankpost event
* adapt tests
* add docs
* also adapt oldtest
|
| |_|/ /
|/| | | |
|
| |/ /
|/| | |
|
| | |
| | |
| | |
| | |
| | | |
Problem: Filetype elm not detected.
Solution: Recognize *.elm files. (closes vim/vim#6157)
https://github.com/vim/vim/commit/0016fd2e29b7d4d4eef89a0516d14888a8651c61
|
| | | |
|