Commit Graph

120 Commits

Author SHA1 Message Date
Prabir Shrestha
859687b98a added initial doc/vim-lsp.txt (#82) 2018-01-01 13:46:02 -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
xtal8
a15344352f Keep position and alternate buffer after :LspRename (#72) 2018-01-01 13:16:09 -08:00
Łukasz Jan Niemier
53a8fa0fe9 Use paste mode when inserting text from response (#79)
* Use paste mode when inserting text from response

This will disable all built in Vim formatting and will input text
exactly as is. This will prevent any formatting issues due to invalid
Vim configuration.

* Use try/finally when setting paste mode
2018-01-01 13:05:06 -08:00
Łukasz Jan Niemier
55108db945 Call complete_check() while waiting for completion (#81)
This should make non-asynchronous completion more robust.
2017-12-31 16:17:30 -08:00
Daniel Trstenjak
ed17cc85af Add initialize method params 'capabilities' and 'initializationOptions' (#62) 2017-12-23 11:02:55 -08:00
xtal8
c5d6ffdc10 Fix :LspDefinition (#65)
Mark position only when jumping.
Screen is sometimes not redrawn after jump. Force redraw.
2017-12-23 11:02:04 -08:00
rliang
e7ab592beb Add preview info to completion items (#57)
* Add preview info from the 'documentation' fields of completion items
2017-11-23 13:32:58 -08:00
xtal8
f1517022bb Add position to jumplist before :LspDefinition (#59)
* Add position to jumplist before :LspDefinition

Currently when we jump with :LspDefinition there's no easy
way to go back. With this change we can move back easily
with `<c-o>` or  `''`.

* fix space
2017-11-23 13:06:39 -08:00
xtal8
27565be44f Fix :LspDefinition (#63)
Vim and servers sometimes use different case for file path.
`bufnr()` will ignore case when used on Windows.
2017-11-23 12:57:43 -08:00
xtal8
b973d62b6e Fix :LspRename (#58)
When buffer is modified renaming fails.
Use :buffer instead of :edit for listed buffers.
2017-11-14 20:06:26 -08:00
Marc Deop
812d890707 Send proper params on lsp#ui#vim#references (#54) 2017-10-24 11:02:29 -07: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
5ae7a59caa better jump for goto definition (#47) 2017-10-02 13:57:29 -07:00
Prabir Shrestha
7a0f9872ec rewrite lsp#client with try..catch and optimizations (#46) 2017-10-02 13:34:51 -07:00
Mateusz Lenik
3dc0ca3b71 Use insertText for completion when possible (#45) 2017-10-02 10:17:46 -07:00
tsufeki
d51194fa4b Use botright for opening quickfix window. 2017-09-19 14:30:08 -07:00
Prabir Shrestha
358e1eec44 added support for basic textDocument/publishDiagnostics via :LspDocumententDiagnostics 2017-09-17 23:44:50 -07:00
Prabir Shrestha
bae35d03d3 notify server instantiated notifications to client 2017-09-17 22:45:54 -07:00
Prabir Shrestha
182daba8da don't use uri for rootPath 2017-09-17 18:28:17 -07:00
Prabir Shrestha
dd1ac6378c only call edit file if the file is not open yet 2017-08-28 20:51:02 -07:00
keremc
fe078915da make s:get_kind_label part of public api (#33)
* make s:get_kind_label part of public api
* rename s:kind_labels
* rename lsp#omni#get_kind()
2017-08-28 08:03:53 -07:00
Prabir Shrestha
bf7ff408ec add more logs for s:on_text_document_did_open() 2017-08-27 12:15:33 -07:00
Prabir Shrestha
2242b6cc28 fix get_text_document_save_registration_options 2017-08-27 11:22:00 -07:00
Prabir Shrestha
bab6364128 fix get_text_document_save_registration_options
https://github.com/rcjsuen/dockerfile-language-server-nodejs/issues/165#issuecomment-325181794
2017-08-27 11:19:58 -07:00
keremc
41da621544 Cleanup & symbol kinds (#31)
* move completion code to autoload/lsp/omni.vim
* merge s:complete_counter and s:completion
* display completion item types
* comment headers
* new helper functions
2017-08-27 10:52:22 -07:00
Prabir Shrestha
25578dbbfa fix :LspDocumentRangeFormat 2017-08-26 20:24:23 -07:00
Prabir Shrestha
7d32511a02 respect TextDocumentSaveRegistrationOptions - fixes #29 2017-08-26 15:47:21 -07:00
keremc
161ffdc054 Make lsp#complete() synchronous (by default) (#28)
* use whitelisted servers for completion
* fix lsp#complete()
* make lsp#complete() synchronous (by default)
* s:find_complete_servers_and_start_pos() is always called
* update README.md
2017-08-26 13:43:23 -07:00
Prabir Shrestha
e1de4b5022 send textDocument/didSave as notification instead of request 2017-08-26 10:06:13 -07:00
Prabir Shrestha
ef5f850084 Update README.md 2017-08-25 22:13:56 -07:00
Prabir Shrestha
cf47780ebc add support for omnifunc - #25
autocmd FileType typescript setlocal omnifunc=lsp#complete
2017-08-25 21:02:38 -07:00
Prabir Shrestha
5eb114d1a4 fix workspace/symbol casing 2017-08-23 21:20:40 -07:00
djrenren
9a793490aa LspDefinition aggregation and jumping (#24)
* Make LspDefinition aggregate multiple server responses and jump if only one definition is found
* Add jump_if_one and last_req_id to ctx
2017-08-23 12:34:28 -07:00
Prabir Shrestha
7968b15188 use getbuline instead of getline 2017-08-22 14:44:12 -07:00
Prabir Shrestha
40c0a9ae0a Update README.md 2017-08-12 20:34:11 -07:00
Prabir Shrestha
9c4c7b0541 Update README.md 2017-08-12 15:01:22 -07:00
Prabir Shrestha
a4366157a7 document root_uri when registering_server 2017-08-12 14:59:51 -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
ba3168001b added debugging log doc 2017-08-12 13:52:07 -07:00
Prabir Shrestha
058e3f73c6 Merge pull request #21 from prabirshrestha/dev
implement manager
2017-08-12 12:54:00 -07:00
Prabir Shrestha
b57ef35e5b Merge branch 'master' into dev 2017-08-12 12:53:23 -07:00
Prabir Shrestha
8054d27eea document supported commands 2017-08-12 12:51:54 -07:00
Prabir Shrestha
b6e1a3f9ae Update README.md 2017-08-12 12:39:31 -07:00
Prabir Shrestha
0014c04d13 Update README.md 2017-08-12 12:36:24 -07:00
Prabir Shrestha
985b683ea9 delete example.vim 2017-08-12 12:35:08 -07:00
Prabir Shrestha
9c10dd4c0b Update README.md 2017-08-12 12:34:34 -07:00
Prabir Shrestha
7e888a7767 Update README.md 2017-08-12 12:33:01 -07:00
Prabir Shrestha
e09032fdc4 use tabstop 2017-08-06 21:56:25 -07:00