248 Commits

Author SHA1 Message Date
Łukasz Jan Niemier
f931d0d29f Use location list instead of quickfix for diagnostics (#335)
Diagnostics are enabled only for current document which makes it
pointless to feed them to the QuickFix which is global. This PR changes
that behaviour to use location list, which is window-local, instead.

Close #75
2019-12-25 13:00:02 -08:00
hrsh7th
a79e1614a8 Add only parameter for code action request (#607) 2019-12-23 10:05:11 -08:00
mattn
a38c46d591 Unlet exited in server (#605)
* Unlet exited in server

* LspStopServer can be specified with name
2019-12-18 16:34:44 +09:00
FUJIWARA Takuya
380f92fcce Add :LspStopServer (#604)
* add :LspStopServer

* add :LspStatus to vim-lsp-contents
2019-12-17 21:41:51 -08:00
thinca
fcf5439b90 Fix error on s:set_textprops() (#600)
`bufwinid()` works on current tab page only, so when user changes the
current tab page, bufwinid() returns -1.
2019-12-15 14:20:10 +09:00
Shumpei Shiina
feefc53ea6 Jump to next/previous diagnostics other than error diagnostics (#587)
- add LspNextWarning, LspPreviousWarning commands to jump to warnings
- add LspNextDiagnostic, LspPreviousDiagnostic commands to jump to
  all kinds of diagnostics
2019-12-14 09:07:05 -08:00
Hirokazu Hata
7ebf07135e If the hover response has only empty string content, we don't display anything. (#553) 2019-12-08 14:08:57 -08:00
Thomas Faingnaert
864e7df1d2 Add explicit line numbers to prop_remove calls (#574) 2019-11-22 01:42:39 -08:00
mattn
1eef992603 Merge pull request #569 from itchyny/fix-async-error-buf-changed
fix error on switching the buffer with longer lines
2019-11-21 16:34:31 +09:00
hrsh7th
4d0ec0d698 Avoid wrong buffer open (#502) 2019-11-20 01:43:22 -08:00
itchyny
fd40b2f4d6 fix error on switching the buffer with longer lines 2019-11-20 06:30:32 +09:00
hrsh7th
5a207a7876 Avoid double tap feature in insert-mode (#558) 2019-11-15 04:16:18 -08:00
hrsh7th
28efdd0003 Fix canceling visual-mode when folding enabled. 2019-11-13 15:20:16 +09:00
Timur Celik
efff12608f Add lsp#formatexpr() (#528)
* Add <plug>(lsp-document-range-format)

This binding defines an operator and can be used with a motion. Because
s:document_format_range() did only format based on the visual selection
markers, a new type parameter was added to pass the selection type
according to 'opfunc'.

* Denote mapmode for plug mappings and add missing
2019-11-02 11:09:08 +01:00
Damien Radtke
19e5b08361 Open Neovim floating windows with "minimal" style (#549) 2019-11-02 10:52:02 +01:00
Yasuhiro Matsumoto
b82958c1db Use bufloaded instead 2019-11-02 12:27:29 +09:00
Yasuhiro Matsumoto
73968daf60 Ignore setting properties on unloaded buffer 2019-11-02 12:20:12 +09:00
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
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
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
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
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
Thomas Faingnaert
698eccaff3 Implement folding (#445)
* Implement folding

* Allow disabling folding globally
2019-09-08 19:17:29 +02: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
mattn
b1ed3dd843 Redraw message if async (#489) 2019-09-07 15:34:32 -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
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
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
machakann
73d98fc328 Rename lsp#utils#byteindex to lsp#utils#to_col 2019-08-20 19:42:21 +08:00
Thomas Faingnaert
1ab8e838ef Fix float sizing in Neovim (#468)
* Fix float sizing in Neovim

* Add g:lsp_preview_max_height
2019-08-17 18:20:16 +02:00
mattn
1090950a59 Merge pull request #449 from daisuzu/fix/tagstack
Fix tagstack
2019-08-17 22:30:58 +09:00