654 Commits

Author SHA1 Message Date
nhaliday
fa10d415d5 Fix an issue in highlighting of references. (#506)
The client tracks whether it has received a response using a global
'pending' variable. This commit ensures the client clears the 'pending'
variable in the case where it has received a response from the server
but that response was an error response, so that future requests actually
go through.
2019-12-25 13:15:35 -08:00
Ł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
Prabir Shrestha
6c97746d66 remove travis.yml (#622) 2019-12-25 12:49:19 -08:00
Prabir Shrestha
90097d076a initial linux vim github ci (#621) 2019-12-25 12:43:26 -08:00
Prabir Shrestha
607149e1e0 add neovim linux github actions (#620) 2019-12-25 12:03:37 -08:00
hrsh7th
5d6de67839 Fix completion when enable g:lsp_async_completion (#615) 2019-12-24 23:02:17 -08:00
Prabir Shrestha
d3dc5db36a added mac neovim github actions (#618) 2019-12-24 22:59:59 -08:00
Prabir Shrestha
e6bf7636be add github workflow for windows_neovim (#617) 2019-12-24 22:36:18 -08:00
Prabir Shrestha
52156ad5fc github actions workflow for windows vim x64 for v8.0 v8.1 and v8.2 (#612) 2019-12-24 21:52:50 -08:00
Prabir Shrestha
ed1c26342b use bionic linux and test against linux vim (#611) 2019-12-23 19:06:57 -08:00
Prabir Shrestha
2f2eb53a2a remove python/pip/vint from travis.yml (#610)
* remove python/pip/vint from travis.yml
* use change before_install to install
2019-12-23 18:55:56 -08:00
Prabir
1d116d37f5 use level as error for vint failures in github actions 2019-12-23 18:26:32 -08:00
Prabir Shrestha
b77471f6a7 add reviewdog vint github actions (#608)
add reviewdog and vint support
2019-12-23 18:19:22 -08:00
mattn
abc1d83dd5 Fix textEdit completion (#572) 2019-12-23 13:59:41 -08:00
hrsh7th
a79e1614a8 Add only parameter for code action request (#607) 2019-12-23 10:05:11 -08:00
Yasuhiro Matsumoto
afaba6a1f2 Revert accidentially commits pushed to master branch. 2019-12-23 01:05:56 +09:00
Yasuhiro Matsumoto
5200a71411 Fix last position 2019-12-22 20:02:12 +09:00
Yasuhiro Matsumoto
6d44e0c200 Merge branch 'master' into fix-snippet-complete 2019-12-22 19:50:35 +09:00
Yasuhiro Matsumoto
7949fb410f Fix 2019-12-22 19:50:27 +09: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
mattn
0956e85875 Print color statuses (#602)
* Print color statuses

* Prefer single quoted strings
2019-12-16 18:37:38 -08:00
mattn
d85c6a5f87 Fix typo (#601) 2019-12-14 21:44:04 -08:00
mattn
f759e4dd0d Add lsp_buffer_enabled (#599)
* Add lsp_enabled

* Enable LSP on new file

* Rename to lsp_buffer_enabled

* Update doc

* Rename to on_lsp_buffer_enabled
2019-12-15 14:20:37 +09: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
Gavinok
d87513ff2d Handle error if the user hits escape before complete() is done (#578)
* Handle error if the user hits escape before complete() is done

* replaced tabs with spaces

* implemented should skip to avoid completing when not in insert mode

* fixed tabbing

* simplifed checking for insert on completion

* removed unnecessary else block

* replaced tabs with spaces
2019-12-11 20:05:38 -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
thinca
d537a4370a Improve help (#588)
* Add : prefix for helptag of Ex commands

* Use function name for helptag of functions

Also adds signature of arguments.

* Apply code block highlights for codes

* Fix link errors

* Do not need link for Vim's options

* Fix some too long lines

* Add link

* Fix tabs
2019-12-03 23:43:13 +09:00
mattn
499794bb21 Set snippetSupport: false (#575) 2019-11-23 13:28:11 -08:00
Thomas Faingnaert
864e7df1d2 Add explicit line numbers to prop_remove calls (#574) 2019-11-22 01:42:39 -08:00
Yasuhiro Matsumoto
9493169b91 Fix test 2019-11-21 18:04:13 +09:00
Yasuhiro Matsumoto
64c8d091d6 Fix test 2019-11-21 17:49:44 +09:00
Yasuhiro Matsumoto
98c19a7e3e Check InsertTextFormat:Snippet 2019-11-21 16:50:56 +09:00
Yasuhiro Matsumoto
e22c13cced Fix snippet completion 2019-11-21 16:34:59 +09: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
Damien Radtke
e566dcd160 Use "P" instead of "p" to insert text (#550)
* Use "P" instead of "p" to insert text
* Update replace command and add test case
2019-11-18 15:42:17 +01:00
Prabir Shrestha
45d5bff9d7 add docs for g:lsp_log_file (#565)
* add docs for g:lsp_log_file

* reword
2019-11-16 16:47:45 -08:00
Prabir Shrestha
cb389127e9 fix travis ci for widows (#564) 2019-11-16 16:27:58 -08:00
Prabir
b2f3f086bc move version check to script 2019-11-15 04:18:13 -08:00
hrsh7th
5a207a7876 Avoid double tap feature in insert-mode (#558) 2019-11-15 04:16:18 -08:00
hiroebe
6db5bd6c3b Add function to update workspace_config (#462) 2019-11-14 20:27:29 -08:00
Thomas Faingnaert
0e811a2874 Filter completions (#391)
* Filter completed items based on typed word

* Remove logs

* Only calculate typed_word once

* Revert "Only calculate typed_word once"

This reverts commit 161c7f460e.

* Revert "Remove logs"

This reverts commit 861c70fc7c.

* Revert "Filter completed items based on typed word"

This reverts commit c450e839b4.

* Reimplement filtering completion items

* Remove s:remove_typed_part

* Fix for NeoVim

* Use 'ignorecase' to filter items

* Allow configuration of filter

* Add documentation

* Add example for typed_pattern

* Change surrounding of `/$` to indicate it is a tag

* Add g:lsp_ignorecase

* Use filterText for filtering

* Add 'contains' filter

* Fix tests

* Avoid using regex

* Fix bug in 'contains' filter

* Use completion trigger chars for typed text

* Move copy

* Update documentation

* Use textEdit starting position

* Change default typed_pattern

* Update documentation

* Fix documentation

* Add note about narrowing down completions

* Fix tests

* Make filtering note clearer

* Remove duplicate text
2019-11-14 20:08:15 -08:00
mattn
a1860ae476 Merge pull request #557 from hrsh7th/fix-folding-visual
Fix canceling visual-mode when folding enabled.
2019-11-13 15:32:59 +09: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
mattn
7168f29c08 Merge pull request #552 from prabirshrestha/fix-err
Ignore setting properties on unloaded buffer
2019-11-02 12:34:21 +09:00