summaryrefslogtreecommitdiff
path: root/plugin
AgeCommit message (Collapse)Author
2018-05-16TUI / GUI tooltip with content from ALEHover (#1556)Gerry Agbobada
* Guard the ballooneval settings * Mark main objectives to do to get nice Hover * Make tweaks to make the tooltip work - See " XXX: comments * Guard balloon_show call * Use return instead of finish for functions * ale#hover#show : Add optional arguments to specify arbtirary position This change is requested to be able to call the function with mouse position to enable hover information in vim's balloon * ale#ballon#Disable : Remove feature guards * ale#balloon : Show 'ALEHover' output on balloon if no diagnostic found * ale#hover#HandleLSPResponse : remove the check for cursor position This check prevented the 'ALEHover in balloon' feature, since mouse position is almost never cursor position. * ale#balloon#MessageForPos : Change the return of balloonexpr balloonexpr evaluation now works even without balloon_show for basic diagnostics, leaving the balloon_show call to ale#hover#Show, which can then feature guard the call to avoid errors * ale#hover#Response : Feature guard balloon_show calls * ale#hover : always display 'Hover' information in messages Also add a small comment to warn readers the different outputs the ale#hover#Show will write to * {LSP,TS}Response : use only variables from the Response It is clearer that we only rely on l:options to get the relevant data to build the LSP Response string * hover#ShowDetails : fix an issue where not having focus broke balloons The issue was caused by not using a buffer-specific version of getline() to cap the value of the column sent in the message to LSP. Therefore a cursor on column 10 in an inactive window could send a message with column=0, if the active window had a buffer with too few lines * {LSP,TS}Response : Remove redundant checks for balloon_show call With the upcoming change in ale_set_balloons default value (see Pull Request w0rp/ale#1565), this check will be useless * balloonexpr? : Add a flag to separate hover#Show() calls The goal of this flag is to make `:ALEHover` calls not pop a balloon under the cursor, since the user has probably no interest in their cursor while typing the command The flag is a default argument which is overridden only in ballonexpr call of ale#hover#Show, and stays set in the hover_map until the callback for the LSP handles it. There are no automated tests for this feature right now, and the nature of the addition (one optional argument in the API) should make it transparent to existing tests. Since the differentiation is now possible, the check for moved cursor has been put back in ale#hover#HandleLSPResponse * ale#hover#hover_map : Protect accesses to hover_map Using get() is safer than trying to access directly with ., as the tests show. * Raise timeout to try to get Appveyor happy * Review : Fix comments * Review : pass the optional argument 'called_from_balloonexpr' in a Dict This optional dictionary has documentation just before the function using it, ale#hover#Show, and allows easier extension in the future.
2018-05-11Improve g:ale_set_balloons default valuerhysd
2018-04-23Move autocmd commands out of the toggle file, to improve load timesw0rp
2018-04-22#1428 Start implementing LSP hover supportw0rp
2018-04-22Add support for finding references using LSP servers or tsserverw0rp
2018-04-18Make ALEFix support argumentsfenuks
2018-04-13#1501 Pass the buffer number from BufWritePost on to ale#fix#Fixw0rp
2018-04-08Close #1439 - Add an :ALEInfoToFile commandw0rp
2018-03-06Add a command for stopping all LSP clientsw0rp
2018-03-03Satisfy my own checksw0rp
2018-03-03Add deprecation warnings for old NeoVim versions and old functionsw0rp
2018-03-02Option to open lists vertically (#1381)Andrew Crites
* Add configuration option to open lists vertically * Add tests, clean up vertical list config * Vertical list option cleanup * Use is# for tests * Order properties in documentation alphabetically
2017-12-20Fix #1115 - Add support for wrapping all commands with an optionw0rp
2017-12-19Clean up ALE linter buffer data when buffers are deleted, not unloadedw0rp
2017-11-30Fix #1176 - Add an option for caching failing executable checksw0rp
2017-11-28Allow warnings about trailing blank lines to be hidden for flake8 and ↵w0rp
pycodestyle
2017-11-21Quietly add go to definition support for tsserverw0rp
2017-11-15Complain about stray echo lines in the codebasew0rp
2017-11-14Fix #1128 - Add g:ale_linters_explicit for only enabling linters explicitlyw0rp
2017-11-14Fix #1069 Support formatting the loclist messages with g:ale_loclist_msg_formatw0rp
2017-11-13#852 Support formatting echo messages with error codes. No linters set the ↵w0rp
`code` key yet
2017-11-12Add support for showing Info severities in echoed messagesw0rp
2017-10-29Fix #719 - Add ALEReset and ALEResetBuffer for removing problems for all ↵w0rp
buffers or one buffer
2017-10-29#817 - Document the buffer toggling options, and define plug mappings for ↵w0rp
everything
2017-10-28#817 Add commands for toggling ALE for only the current bufferw0rp
2017-10-28#817 Move code for toggling ALE to its own filew0rp
2017-10-27#1054 - Prevent ALE from adding the after directory to runtimepath too muchw0rp
2017-10-26#1049 Do not modify runtimepath if the conflict warnings are disabledw0rp
2017-10-14#904 Do not run linters on :wq or :xw0rp
2017-10-12#965 - Make the cursor echo delay configurablew0rp
2017-10-12#965 - Support limiting the number of signs ALE will setw0rp
2017-08-22#653 - Always set loclist or quickfix in a timer callback, which prevents ↵w0rp
errors E924, E925, and E926
2017-08-20#653 - Automatically accept annoying loclist and quickfix errors from Vimw0rp
2017-08-18Increase the default maximum completion suggestions to a more useful but ↵w0rp
safe level, and filter before requesting details, which is faster
2017-08-14Set up one BufEnter event used for everything, and add tests for linting ↵w0rp
when the filetype changes
2017-08-13#653 Skip filetype keys in g:ale_buffer_info during cleanupw0rp
2017-08-11Use a shorter default completion delay, which works betterw0rp
2017-08-11Ban !=# and !=? from the codebasew0rp
2017-08-08Ban use of ==# or ==? in the codebase, and prefer is# or is? insteadw0rp
2017-08-01#734 - Use the buffer number from the events for entering buffers and saving ↵w0rp
buffers for checking buffers
2017-07-16Fix #560 #763 - Silence errors for setting signs, and do nothing for dirvishw0rp
2017-07-15Fix #773 - Do not clear the loclist when closing the loclist windoww0rp
2017-07-11Fix #747 - Lint and fix files after they have been been written to disk, not ↵w0rp
during writing them
2017-07-07#697 - Clear all highlights every time items are set again, and refactor ↵w0rp
most things. Clear errors when linters are removed
2017-07-04Store the output of commands by default so I don't have to ask people to ↵w0rp
turn it on any more.
2017-07-02Get automatic completion with tsserver to workw0rp
2017-06-24Fix #687 - Check files on enter if they have changedw0rp
2017-06-14Fix #536 - Implement linter problem type re-mappingw0rp
2017-06-06Use BufWinEnter for g:ale_lint_on_enter insteadw0rp
2017-06-05Do not check files on insert leavew0rp