165 Commits

Author SHA1 Message Date
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
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
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
Thomas Faingnaert
738e91f0af Check currently loaded buffers for location list (#466) 2019-08-13 15:14:42 +02:00
Unknown
9906e085f1 Convert character-index to byte-index for textprop and location-list 2019-08-12 22:14:34 +08:00
Thomas Faingnaert
ce1488039a Fix hover on same identifier not working in Vim (#463) 2019-08-08 08:43:31 +02:00
Thomas Faingnaert
67e27494f5 Cleanup hover fix on missing filetype (#446)
Also see #442 and #443.
2019-07-25 09:10:07 +02:00
Thomas Faingnaert
79d47fea15 Fix g:lsp_preview_max_width for Neovim (#440)
* Fix g:lsp_preview_max_width for Neovim

* Fix max_width also specifying minimum width
2019-07-24 09:40:02 +02:00
Thomas Faingnaert
c2b7c23fdc Fix hover breaking on missing filetype (#443) 2019-07-24 09:12:35 +02:00
Thomas Faingnaert
55e6cd1749 Simplify conditionals in output.vim (#439) 2019-07-22 18:29:28 -07:00
Thomas Faingnaert
813ea77b91 Add LspPeekDefinition (#412)
* Add LspPeekDefinition

* Add documentation

* Add lsp-peek-definition mapping to documentation

* Add link to Vim preview-window help

* Rewrite LspPeekDefinition using preview window

* Implement peek for Vim popup window

* Make LspPeekDefinition work in Neovim

* Support align in Neovim

* Fix linter errors

* Extract duplicate code to s:align_preview function

* Merge setlocal settings in one line

* Remove suppress_close

* Clean up cursor movement for preview window

* Move Neovim cursor code to separate function

* Allow customising peek alignment

* Move Vim alignment code to separate function

* Implement Vim alignment of popup window

* Cleanup

* Remove extraneous lines

* Move set_cursor logic

* Move scrolloff setting

* Make function calls a bit more consistent

* Vim popup window fixes

* Remove extraneous call

* Fix Vim alignment

* Remove hardcoded width

* Add abort to closure function

* Fix artifacts

* Fix wrong height if popup above cursor

* Add remaining Peek commands

Add LspPeekImplementation, LspPeekTypeDefinition and LspPeekDeclaration.

* Fix wrong positioning of Vim popup
2019-07-21 09:40:19 -07:00
hiroebe
668405756b Clear all vim_lsp signs when disabling (#436) 2019-07-21 09:35:18 -07:00
hiroebe
9507824842 Fix namespace for clearing highlights (#432) 2019-07-17 21:13:31 -07:00
Thomas Faingnaert
91751670ed Allow setting popup max width (#416)
* Allow setting max width of popup window in Vim

* Allow setting max width of popup window in Neovim

* Add documentation

* Uses spaces instead of tabs for indent in help

* Move Neovim logic to s:setcontent

* Rename setting to g:lsp_preview_max_width

* Replace 'popup' with 'preview'
2019-07-17 21:01:07 -07:00
Thomas Faingnaert
533aef14d2 Fix clear textprops for unloaded buffers (#430) 2019-07-11 13:37:43 -07:00
smhc
5fd87f413d Added g:lsp_signs_priority map 2019-07-10 16:57:39 +10:00
smhc
9cbc9f49cc Added g:lsp_signs_priority 2019-07-10 16:03:49 +10:00