Commit Graph

31 Commits

Author SHA1 Message Date
Prabir Shrestha
6bb6069f94 Diagnostics for all buffers (#982)
* render diagnostics in loclist and fix args paser
* document --buffers flag for LspDocumentDiagnostics
* do not show diagnostics if it is disabled for buffer
* remove old code and fix plug mapping for lsp-document-diagnostics
* add unit tests for document diagnostics command
2020-12-27 22:44:18 -08:00
John Schug
2ca2fe3854 Add support for the tagfunc option (#815)
* Add support for tagfunc option

* Consolidate various synchronous wait implementations

* Refactor to use lsp#utils#position#lsp_to_vim

Also marks get_symbol_text_from_kind as internal and fixes compatibility
with older vims.
2020-05-25 14:41:21 -07:00
hrsh7th
46308234a2 Implement register command (#735)
* Implemente register command

* Add server_name to command context

* Expose lsp_to_vim, vim_to_lsp API's as public
2020-03-03 13:09:41 +09:00
prabirshrestha
44e0823d55 fix :LspDocumentDiagnostics 2020-01-01 18:12:26 -08:00
Prabir Shrestha
b02345d223 added lsp#utils#location#_lsp_to_vim_list (#647)
* added lsp#utils#location#_lsp_to_vim_list
* check of response.result
* remove lsp#ui#vim#utils#locations_to_loc_list
* refactor to use s:open_location
* use lsp#utils#is_file_uri
2020-01-01 16:10:33 -08:00
Prabir Shrestha
3aba91cf71 remove lsp#utils#to_col in favor of lsp#utils#position#_lsp_to_vim (#645)
* refactor to use lsp#utils#position#_lsp_to_vim
* remove lsp#utils#to_col in favor of lsp#utils#position#_lsp_to_vim
* fix doc
2020-01-01 13:33:36 -08:00
Prabir Shrestha
ae1aa1459f support hierarchical document symbol even if we don't explicilty set it to true (#631) 2019-12-26 13:52:46 -08: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
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
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
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
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
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
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
Maxim Kot
c547986d3b Naive implementation of location preview instead of just path (#123)
* Naive implementation of location preview instead of just path

* Make cache usage actual

* Fix wrong cached line index computation. Fix copy paste.
2018-03-29 22:01:08 -07:00
Prabir Shrestha
897b60960c Revert "Show matching lines on :LspReferences (#93)" (#98)
This reverts commit a2483c71d1.
2018-01-21 13:08:00 -08:00
xtal8
a2483c71d1 Show matching lines on :LspReferences (#93) 2018-01-07 14:20:07 -08:00
Łukasz Jan Niemier
203d682e30 Create preview window instead of using quickfix list (#78)
* Create preview window instead of using quickfix list

This removes from us burden of providing formatting for content as this
is now simple as setting proper filetype.

* Create custom filetype for preview window

This will allow users to provide their own mappings and features in
hover window easily.

* Add proper statusline for LSP Hover

* Guard and undo_ftplugin

* Support all LSP hover syntaxes
2018-01-01 13:29:50 -08:00
Jacob Wahlgren
c4b3b2f605 Fix errors and warnings produced by vint (#51)
* Wrap silent aucmds in augroup
Prevents stacking up multiple.
* Fix function signatures
Add ! and/or abort.
* Fix syntax and variable name typo
* Use robust equality comparison
* The == operator behaves differently depending on 'ignorecase'.
2017-10-17 10:57:08 -07:00
Prabir Shrestha
358e1eec44 added support for basic textDocument/publishDiagnostics via :LspDocumententDiagnostics 2017-09-17 23:44:50 -07:00
Prabir Shrestha
2802c39ca0 move utils to lsp#utils#... 2017-08-12 14:48:36 -07:00
Prabir Shrestha
974614e197 handle nulls 2017-08-12 14:01:52 -07:00
Prabir Shrestha
0b102b5c1c added LspDefinition 2017-08-05 15:55:54 -07:00
Prabir Shrestha
4c01e85c02 get document symbols 2017-07-10 00:26:05 +00:00