Prabir Shrestha
098509278d
refactor diagnostics count to using diagnostics state ( #999 )
2021-01-02 00:14:05 -08:00
Prabir Shrestha
2eb8d16413
refactor diagnostics under cursor to use the new internal diagnostics state ( #997 )
2021-01-01 11:31:07 -08:00
Prabir Shrestha
efd07d859e
Revamp diagnostics highlights ( #995 )
2020-12-31 23:13:19 -08:00
Prabir Shrestha
5743ae2110
Diagnostics signs revamp ( #994 )
2020-12-31 01:23:26 -08:00
Prabir Shrestha
1489cf8295
Revamp diagnostics virtual text ( #990 )
2020-12-30 14:49:44 -08:00
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
bamchoh
5f23ecd388
Convert lowercase drive letters to uppercase ( #953 )
...
* Convert lowercase drive letters to uppercase
I faced a problem that error diagnostics message does not shown in golang source code. In a result of my investigation, this problem occurs when I change the current directory with lowercase driveletter like `cd c:\dev\go\test001`. When `cd C:\dev\go\test001` is no problem. To avoid this problem, we need to convert driver letter to uppercase in lsp#utils#path_to_uri function.
* Update utils.vimspec
* Revise a code in diagnostics.vim instead of utils.vim to reduce impact of modification
* Create a function to normalize uri
* Add a comment about normalize discussion
* Delete s:is_win check
* Revise comment for normalization of urls
2020-12-25 11:11:47 -08:00
mattn
46330cd0cb
Set <nomodeline> to all of doautocmd ( #904 )
2020-09-17 22:36:19 +09:00
Eivy
c029ce1330
Jumping to diagnostics with command args '-nowrap' ( #770 )
...
* Add func 'lsp#utils#parse_command_options'
* Add wrap option to jumping to diagnostic
* Update doc
* Fix lint error
* Remove debug code
2020-05-02 18:41:55 -07:00
Mitin Arseny
5dd94c66f7
lsp_diagnostics_updated autocommand ( #783 )
...
* feat: lsp_diagnostics_updated autocommand
* docs: remove lightline.vim
* docs: generalize not only for status line
2020-04-10 20:38:28 -07:00
mattn
f79bf39922
Count errors if severity is 1 or not have severity ( #758 )
...
* Count errors if severity is 1 or not have severity
Fixes #757
* Add test
2020-03-17 19:24:41 +09: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
hrsh7th
6f3d2d4e79
Update diagnostics when document open ( #727 )
2020-02-25 11:08:49 +09:00
Fujiwara Takuya
52539a54ae
Show diagnostics in a floating window ( #700 )
...
* fix comment
* fix indent
* support diagnostics in a floating window
* doc: add g:lsp_diagnostics_float_{cursor,delay}
* fix vint errors except unused variables
* suppress vint unused variable errors
* lint: use robust operator
2020-02-10 01:44:05 +09:00
hrsh7th
70234feca4
Improve code action ( #663 )
...
* Improve code action
* Add LspCodeActionSync
* Fix miss argument
* Fix for the review
* Add utils and tests
* Remove unused function
2020-01-09 08:35:39 -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
Ł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
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
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
73d98fc328
Rename lsp#utils#byteindex to lsp#utils#to_col
2019-08-20 19:42:21 +08:00
Unknown
9906e085f1
Convert character-index to byte-index for textprop and location-list
2019-08-12 22:14:34 +08:00
tsufeki
f02bf20330
Expose diagnostics count for current buffer. ( #376 )
...
* Expose diagnostics count for current buffer.
* Add lsp#get_buffer_first_error_line()
2019-06-25 11:19:26 -07:00
tsufeki
c1be742774
Add diagnostics highlighting via +textprop. ( #375 )
...
* Add diagnostics highlighting via +textprop.
* Use textprop 'combine' option, added in 8.1.1276
* Add textprop docs.
* Enable textprop highlights by default.
2019-05-17 03:02:38 -07:00
Jason Cheatham
b20f79c8e0
Add support for nvim highlights ( #352 )
2019-03-23 10:01:17 -07:00
Prabir Shrestha
e3f69339ef
Merge pull request #336 from hauleth/support-nvim-virtual_text
...
Support NeoVim virtual text
2019-03-07 12:25:48 -08:00
Łukasz Niemier
cedacac6fc
Support NeoVim virtual text
...
Currently it uses similar interface to one provided by the signs
feature.
Close #214
2019-03-07 20:05:28 +01:00
nickspoon
2c7c747933
Fix lint (vint) error
2019-03-04 09:18:35 +13:00
nickspoon
2986ccbe74
Refactor error_next/previous out of signs.vim
...
Moving the error navigation code out of signs.vim to diagnostics.vim
means that errors can be navigated when signs are disabled.
This commit re-introduces error-column navigation, after the signs
refactoring.
2019-03-03 22:43:32 +13:00
Yasuhiro Matsumoto
90cd24fe62
normalize URI for diagnostic on Windows
2019-02-05 10:51:44 +09:00
Matteo Landi
ac22efb91e
Add flag to disable diagnostics ( #197 )
...
* Add switch, g:lsp_diagnostics_enabled, to disable support for diagnostics
* Reduce PR changeset
2019-01-01 20:43:46 -08:00
Prabir Shrestha
72916bce5f
use echo instead of echom ( fixes #74 )
2018-03-17 20:08:25 -07:00
Tristan Konolige
a070ef4ac8
Print error message when server fails to initialize ( #113 )
...
* Print error message when server fails to initialize
* move error_msg to utils.vim
* rename error_msg to lsp#utils#error
2018-03-14 23:08:24 -07:00
Prabir Shrestha
53e805bb8d
add support for case-insensitive drive lookup for windows ( #102 )
2018-01-27 22:13:16 -08:00
Prabir Shrestha
cbf0fd26df
support for showing diagnostics under cursor ( #90 )
...
* support for showing diagnostics under cursor
* added README.md
2018-01-06 18:58:35 -08:00
prabirshrestha
1bb957d6bf
added s:error_msg in diagnostics.vim
2018-01-06 16:35:42 -08:00
Prabir Shrestha
148bc9a9a1
initial support for diagnostics signs ( #89 )
2018-01-06 13:25:32 -08:00