Commit Graph

500 Commits

Author SHA1 Message Date
Utkarsh Maheshwari
dd584dfcbf Add g:lsp_virtual_text_prefix option (#521)
This option allows prepending characters or text to the diagnostics
which are display as virtual text. It allows virtual text to be
differentiated from the code
2019-11-02 01:07:51 +01:00
glenvt18
47a883d7b2 Fix empty locations handling (#538)
This fixes out-of-range error for l:locations[0].
2019-10-28 16:23:41 -07:00
Thomas Faingnaert
46af4cd601 Fix cancelling insert mode (#546)
* Fix cancelling insert mode

* Revert "get proper window number (#541)"

This reverts commit 59daf85d39.
2019-10-22 01:10:29 +02:00
Thomas Faingnaert
89fd2818fb Revert "Add buffer expression to bufwinnr call (#545)" (#547)
This reverts commit 86bb8b3492.
2019-10-22 01:08:55 +02:00
Thomas Faingnaert
86bb8b3492 Add buffer expression to bufwinnr call (#545) 2019-10-21 23:46:19 +02:00
Kazuhiro Miyahara
8e849e1f55 add line num args to prop_remove (#540) 2019-10-21 11:53:22 -07:00
Kazuhiro Miyahara
59daf85d39 get proper window number (#541)
Getting proper windows number when windows is splitted
2019-10-19 13:44:46 -07:00
Thomas Faingnaert
cc6074a624 Remove duplicate LspTypeDefinition (#531) 2019-10-03 17:10:15 +02:00
Christian Clason
db2b675397 Allow for MarkupContent in completion info (#500)
* allow for MarkdownContent in completion info

* add check for correct type in MarkupContent

* also pass Markdown, and hope for the best

* d'oh!

* advertise plaintext preference in documentation

* fix documentationFormat

Co-Authored-By: Thomas Faingnaert <thomas.faingnaert@hotmail.com>
2019-10-03 16:17:40 +02:00
Christian Clason
d5ab74c91e Fixup custom-kind (#529) 2019-10-03 14:58:57 +02:00
Christian Clason
550c7eb95a Allow custom server-specific symbol and completion item kind (#524)
* allow customization of symbol_kinds

* allow customization of completion_item_kinds

* make server name optional

* add docs

* slightly rearrange documentation

* Remove trailing whitespace
2019-10-03 14:29:50 +02:00
Prabir Shrestha
a0b859d9ae Add gitter chat link (#526) 2019-09-29 00:24:26 -07:00
mattn
e23a00e12d Merge pull request #518 from prabirshrestha/fix-516
Fix #516
2019-09-20 18:39:49 +09:00
Yasuhiro Matsumoto
a20a0c1da8 Add test 2019-09-20 18:14:07 +09:00
Yasuhiro Matsumoto
780e7538a4 Fix #516 2019-09-20 18:09:49 +09:00
hrsh7th
60a1d58b77 Fix #512 (#514) 2019-09-19 16:37:48 -07:00
Vu Le
da078b1096 Fix diagnostic highlighting on incorrect texts (#504) 2019-09-11 18:00:55 +02:00
mattn
34397f0b5f Merge pull request #488 from prabirshrestha/fix-textedit
Fix textEdit
2019-09-10 23:35:07 +09:00
Christian Clason
906bd2eafe Use locationLink for definition preview (#498)
* use locationLink for definition preview

* remove cursor setting for location link

* make vint happy

* also advertise support for declaration, typeDefinition, implementation

* small refactor

* refactor to avoid code duplication

* restore lost check for file
2019-09-10 16:20:56 +02:00
hrsh7th
b68bc8ba35 Highlight active parameter in signatureHelp (#497)
* Highlight active parameter in signatureHelp

* Support `[number, number]` form of parameter label.

* Support parameter's documentation.

* Fix extracting parameter label
2019-09-10 15:54:45 +02:00
Yasuhiro Matsumoto
ff94e63af8 Remove s:parse 2019-09-10 10:01:03 +09:00
Yasuhiro Matsumoto
4ee0799b4d Fix textEdit 2019-09-09 23:31:15 +09:00
Yasuhiro Matsumoto
90d568d2fa Merge branch 'master' into fix-textedit 2019-09-09 14:58:12 +09:00
Yasuhiro Matsumoto
3a6def04b9 Add test 2019-09-09 14:29:17 +09:00
Yasuhiro Matsumoto
e9a428d2e1 Fix textEdit 2019-09-09 13:07:20 +09:00
Thomas Faingnaert
e7480252ec Check if buffer exists in folding textprops (#495) 2019-09-08 13:02:08 -07:00
Thomas Faingnaert
d7e644c2a7 Nicer syntax highlighting for hover (#441)
* Implement syntax highlighting for hover

* Fix signatureHelp
2019-09-08 11:26:22 -07:00
Prabir Shrestha
5fafaa3d72 Disable highlight ref by default (#492)
* disable highlight references by default since it is executes request on every cursor change

* update higlight text

* fix doc
2019-09-08 11:10:36 -07:00
Thomas Faingnaert
698eccaff3 Implement folding (#445)
* Implement folding

* Allow disabling folding globally
2019-09-08 19:17:29 +02:00
Timur Celik
91535619e6 Check for codeActionKinds in codeActionProvider (#382)
This was tested with ccls, which will return CodeActionOptions instead
of a boolean in codeActionProvider. According to spec this is an invalid
response by ccls, because as a client we didn't signal
codeActionLiteralSupport. But I think it can be safely assumed that the
server provides code actions when he returns a non empty list of
codeActionKinds.
2019-09-08 09:23:41 -07:00
Tomasz Zurkowski
01a5a3198d Improve name of diagnostic variables. (#348)
Use 'diagnostic' (singular) when variable refers to one Diagnostic
object and use 'diagnostics' (plural) when it is a list of diagnostics.
2019-09-08 09:21:34 -07:00
machakann
3121f0a916 Multibyte-character support (Fix #425) (#490)
* Multibyte character support for lsp#get_position()

* Multibyte character support for "textDocument/documentHighlight"

* Fix `lsp#utils#byteindex()` would fails if a file is not yet loaded

* Add tests

* Rename lsp#utils#byteindex() and lsp#utils#charindex()

lsp#utils#byteindex() -> lsp#utils#to_col()
lsp#utils#charindex() -> lsp#utils#to_char()

* Multibyte character support for textEdit

* Remove unused line

* Multibyte character support for  "textDocument/rangeFormatting"

* Multibyte character support for  "textDocument/publishDiagnostics"
2019-09-08 09:13:09 -07:00
Yasuhiro Matsumoto
44e30a430d Use black hole register 2019-09-08 22:10:29 +09:00
mattn
b1ed3dd843 Redraw message if async (#489) 2019-09-07 15:34:32 -07:00
Jared Tiala
e6d4367db0 Add delay before didSave callback (#455) 2019-09-07 15:33:52 -07:00
Christian Clason
886dfda496 Announce support for Item and Symbol kinds (#485)
* announce support for Item and Symbol kinds

* generate list of kinds from dictionaries
2019-09-07 16:41:29 +02:00
mattn
ec3ba7457c Merge pull request #429 from smhc/signs_prio
Added g:lsp_signs_priority
2019-09-07 23:32:16 +09:00
Yasuhiro Matsumoto
dd36602267 Fix a bug 2019-09-07 22:47:19 +09:00
Yasuhiro Matsumoto
aebafac116 Fix a bug 2019-09-07 22:39:27 +09:00
Yasuhiro Matsumoto
13fac90000 Fix textEdit
The p comand append empty line. So when replacing text block with "\n", it need
to remove with dd.

Fixes #483
2019-09-07 22:18:49 +09:00
mattn
96579bd0b3 Signature help (#479)
* Add signatureHelp

* Use <buffer>

* Check lsp_use_trigger_characters_for_signature_help

* Rename to lsp_signature_help_enabled

* Use InsertCharPre

* Add abort

* Check documentation exists
2019-08-31 13:08:56 -07:00
smhc
7e3625ed7a Merge branch 'master' into signs_prio 2019-08-30 19:11:50 +10:00
mattn
63b9bd6d7b Merge pull request #475 from tomwei7/master
Fix unable to jump unloaded buffer
2019-08-30 16:15:53 +09:00
mattn
a00e902361 Merge pull request #467 from machakann/fix_highlight_misplacement
Convert character-index to byte-index for textprop and location-list
2019-08-30 16:11:26 +09:00
mattn
fea601a820 Merge pull request #478 from clason/patch-1
Update SymbolKind to latest specification
2019-08-30 16:07:34 +09:00
Christian Clason
01321d1705 change camel case to separate words 2019-08-30 09:05:02 +02:00
Christian Clason
e3772d98d5 Update SymbolKind to latest specification
closes #477
2019-08-27 22:33:37 +02:00
wei cheng
6d2f3adbf6 Avoid call getbufline twice 2019-08-23 23:38:23 +08:00
Timur Celik
2cb386d294 Add g:lsp_signs_priority option (#470)
* Add g:lsp_signs_priority option

When used with other plugins (e.g. gitgutter), the signs will often get
replaced. This patch makes priority configurable for the user and
defaults to a value of 15, which should be a reasonable value for most
use cases.

* Adapt vim's default value of 10 as sign priority
2019-08-22 20:48:12 +02:00
wei cheng
ad958ee352 Fix unable to jump unloaded buffer 2019-08-22 23:10:39 +08:00