Commit Graph

336 Commits

Author SHA1 Message Date
Prabir Shrestha
d3af2b8e1a return empty string so the output#preview will not add 0 in cmdline (#83) 2018-01-01 14:36:25 -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
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
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
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
dd1ac6378c only call edit file if the file is not open yet 2017-08-28 20:51:02 -07:00
Prabir Shrestha
25578dbbfa fix :LspDocumentRangeFormat 2017-08-26 20:24:23 -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
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
e09032fdc4 use tabstop 2017-08-06 21:56:25 -07:00
Prabir Shrestha
37f9844009 fix s:apply_text_edits for the end position 2017-08-06 21:11:27 -07:00
Prabir Shrestha
8e3304d6af added :LspDocumentRangeFormat 2017-08-06 20:52:48 -07:00
Prabir Shrestha
ae9d05b4ee added :LspDocumentFormat 2017-08-06 19:00:47 -07:00
Prabir Shrestha
9f4ee9cdfb fixed LspHover 2017-08-06 18:26:43 -07:00
Prabir Shrestha
07534da631 check for server capabilities before making requests to the server 2017-08-06 18:13:59 -07:00
Prabir Shrestha
78f87ead78 added basic :LspRename 2017-08-06 17:03:39 -07:00
Prabir Shrestha
a8878ef71e fix :LspHover when it is array 2017-08-06 15:12:54 -07:00
Prabir Shrestha
388f511721 added textDocument/hover support via :LspHover 2017-08-05 19:10:34 -07:00
Prabir Shrestha
57aac76a12 added support for textDocument/references via :LspReferences 2017-08-05 16:20:54 -07:00
Prabir Shrestha
0b102b5c1c added LspDefinition 2017-08-05 15:55:54 -07:00
Prabir Shrestha
c1d73b0ab2 added lsp#get_server_capabilities and lsp#get_position 2017-07-09 20:17:25 -07:00
Prabir Shrestha
d3895e279f get workspae symbols 2017-07-10 00:56:39 +00:00
Prabir Shrestha
8fed8e2a7c remove fzf.vim 2017-07-10 00:32:21 +00:00
Prabir Shrestha
4c01e85c02 get document symbols 2017-07-10 00:26:05 +00:00
Prabir Shrestha
c4b781e203 lsp#send_request 2017-07-09 14:24:47 -07:00