Horacio Sanson
c984daa0ec
Fix 4141 - Stop press enter prompt on long diagnostic messages ( #4144 )
...
* Fix 4141 - Stop press enter prompt on long diagnostic messages
* Fix 4139 - Check for array before join truncated_echo
2022-04-06 10:51:07 +09:00
w0rp
d3df00b898
Fix test for echoing messages
...
The previous linter rule about stray echo lines has been restored, and
now all problems for custom linting rules can be ignored by adding a
comment above problem lines.
2022-04-01 14:35:07 +01:00
Amadeus Demarzi
b3d1d6eecf
Use echon over echom for cursor echo ( #3888 )
...
* Problem messages no longer clutter `:messages`
* Messages are truncated better
2022-04-01 13:54:23 +01:00
Kevin Clark
39f393ef07
Add nvim floating window support (replaces #3314 ) ( #3470 )
...
* Add nvim floating window hover support
* Add configuration for float to replace preview
* preview#ShowFloating: qualify local variables
* Configure floating preview usecases individually
Also:
* Extract floating preview to its own file.
* Ignore 'stay_here' option. Moving into the floating preview window
seems confusing at best.
* Re-use existing floating preview window if it's still up.
* Flush out floating preview documentation.
* Watch cursor position changes per window
Floating previews open a new window, so when that window is written to,
it moves briefly there at a different position than the original window.
This makes repeated positions detected when positions are tracked at a
s: level. Instead, we change the variable to window scoped, which only
fires a message if the cursor has changed from the last position in
*that window*.
* g:ale_floating_preview cleanup
* floating_preview: add ALEDetail tests
* Fix fecs test missing runtime call
* Add ALEHover floating preview tests
Co-authored-by: Jan-Grimo Sobez <jan-grimo.sobez@phys.chem.ethz.ch>
2021-01-14 18:06:20 +00:00
w0rp
719f3c62b0
#3266 - Catch echo visual selection errors
2020-08-27 13:57:20 +01:00
w0rp
6d14dc0ac0
#2417 - Silence errors for shortmess+=T
2019-04-08 11:41:23 +01:00
w0rp
5505f2323d
Fix #2330 - Do not use getcurpos() to avoid changing curswant
2019-03-07 12:28:42 +00:00
Luan Santos
f58a5cba05
Move virtualtext handling to own file
...
This allows cursor and virtualtext to be independently autoloaded.
2018-11-06 22:31:35 -08:00
w0rp
25068de91d
Fix incorrect warning match
...
Co-Authored-By: luan <github@luan.sh>
2018-11-06 11:31:17 -08:00
Luan Santos
c41dbe2ba9
Add support for nvim's virtualtext on cursor
...
- Add g:ale_virtualtext_cursor boolean to enable/disable it
- Add g:ale_virtualtext_prefix to configure what prefix to use (default:
'> ')
- Requires neovim 0.3.2's unreleased API `nvim_buf_set_virtual_text`
2018-11-05 22:45:40 -08:00
Linda_pp
87986520d6
Fix E523 on asynchronous truncated echo ( #1987 )
2018-10-11 15:01:27 +01:00
w0rp
43d7e8fde9
#1889 Add support for automatically previewing messages based on the cursor position
2018-09-14 12:42:26 +01:00
w0rp
a746ea2bfc
#1875 - Do not echo cursor messages when keys are pending
2018-09-03 11:41:54 +01:00
w0rp
9674132933
Remove CallWithCooldown functions to save on time
2018-06-20 08:34:42 +01:00
w0rp
f2837b5802
#1524 - Define global variables where they are needed
2018-05-28 19:19:20 +01:00
w0rp
d2bea5c310
Allow the cursor messages to be disabled while Vim is running
2017-12-19 14:43:24 +00:00
w0rp
2cacba5758
Fix #1228 - Reset the cursor if echoing a message moves it
2017-12-19 12:06:08 +00:00
w0rp
e0c3cbd16f
Remove some now redundant echo code
2017-12-18 11:22:24 +00:00
w0rp
597507e519
Make the message formats configurable with buffer local variables
2017-11-19 23:44:09 +00:00
w0rp
e12e5c912c
Complain about stray echo lines in the codebase
2017-11-15 12:00:13 +00:00
w0rp
d48506f9c1
Fix #757 - Show :ALEDetail messages in a window
2017-11-14 23:25:01 +00:00
w0rp
16e7dc2371
Fix #1069 Support formatting the loclist messages with g:ale_loclist_msg_format
2017-11-14 10:28:36 +00:00
w0rp
584e0bc7f2
#852 Support formatting echo messages with error codes. No linters set the `code` key yet
2017-11-13 00:47:34 +00:00
w0rp
70623ca8a7
Add support for showing Info severities in echoed messages
2017-11-12 23:19:26 +00:00
w0rp
663fe75d0f
#965 - Make the cursor echo delay configurable
2017-10-12 23:25:41 +01:00
w0rp
02c8793c53
#965 Check ale#ShouldDoNothing() less and such often, for better performance
2017-10-11 23:51:41 +01:00
w0rp
c52a4910bf
#653 - Update the loclist binary search to work with buffer numbers, to filter out items for other buffers
2017-08-12 14:27:47 +01:00
w0rp
7614560a6e
#468 - Do not try to echo things for a while if something goes wrong
2017-08-12 10:47:06 +01:00
w0rp
d5ae3201a4
Ban !=# and !=? from the codebase
2017-08-11 00:31:42 +01:00
w0rp
a535d07f28
Ban use of ==# or ==? in the codebase, and prefer is# or is? instead
2017-08-08 08:39:13 +01:00
w0rp
16cfedf04a
Fix #271 - Add the ability to open the quickfix or loclist windows only after saving a file
2017-08-08 00:46:42 +01:00
w0rp
a4ffd2f37c
#734 - Use the buffer number from the events for entering buffers and saving buffers for checking buffers
2017-08-01 00:03:24 +01:00
Eddie Lebow
78e0029488
Fix comment typo
2017-07-11 01:30:28 -04:00
w0rp
00d3141962
Fix #577 Add an option preventing linting of large files
2017-05-26 21:21:15 +01:00
w0rp
9460e58c3b
Fix #371 Allow ALE to be disabled in different buffers
2017-05-26 16:20:17 +01:00
w0rp
3a289dab6b
#318 Do not capitalize the first character for cursor messages
2017-05-21 19:51:34 +01:00
w0rp
76df2d393b
Fix detailed messages with newline characters
2017-03-04 23:55:12 +00:00
w0rp
2750c605c1
Fix cursor issues, and clean up the cursor tests
2017-03-03 20:14:03 +00:00
Jasper Woudenberg
f5ddc51d85
Address some feedback
2017-03-02 18:40:07 -08:00
Jasper Woudenberg
70711022db
Add support for error details
...
Some review needed.
2017-03-01 23:27:48 -08:00
w0rp
c460602cbb
#338 Try and stop ALE from throwing ALEs when run from a sandbox
2017-02-14 21:02:49 +00:00
w0rp
614a30a508
Improve file blacklisting to make Unite.vim not fuck up.
2016-10-31 14:47:08 +00:00
w0rp
454dbbe33e
Merge remote-tracking branch 'origin/echo-less'
2016-10-25 16:51:50 +01:00
w0rp
aa4c669ea0
#148 - Check the cursor position so we don't try to echo too frequently.
2016-10-25 16:07:20 +01:00
w0rp
d6a7b0f518
#119 - Stop ALE clearing the echo message when it doesn't need to.
2016-10-24 20:55:20 +01:00
w0rp
c546f47cc0
Merge everything into the one global map.
2016-10-24 20:21:42 +01:00
w0rp
b07161fe38
#109 Use norm! instead of norm to solve remapping issues.
2016-10-16 16:09:01 +01:00
w0rp
a089fabb5c
Add some unit tests for the BinarySearch function.
2016-10-13 21:24:47 +01:00
Bjorn Neergaard
ca4badfb3a
Use explicit scope in the ale core, as advised by vint -s
2016-10-11 06:14:20 -05:00
w0rp
e9ad21b679
Fix cursor bugs.
2016-10-10 19:56:05 +01:00