Horacio Sanson
53ff5f2d88
Fix 3546 - check empty executable string.
...
At some point VIM/NVIM started throwing errors if the input string is
empty for some functions such as execute() and fnamemodify(). This
commit checks if the executable string is empty before passing it to the
executable() function.
Resources:
- https://github.com/vim/vim/issues/7465
- https://github.com/vim/vim/releases/tag/v8.2.2117
2021-01-23 01:34:13 +09:00
Charles B Johnson
451e99341e
xo: refactor to function
2021-01-22 09:23:54 -06:00
Charles B Johnson
4edfac4db6
xo: inline filetype handling
2021-01-22 09:23:54 -06:00
Charles B Johnson
23ff19a162
fixers/xo: remove unnecessary directory crawl
2021-01-22 09:23:54 -06:00
Charles B Johnson
f17beadb49
fixers/xo: support monorepos
2021-01-22 09:23:54 -06:00
Charles B Johnson
8ffde14039
fixers/xo: support stdin relative to the fixed file
2021-01-22 09:23:53 -06:00
Charles B Johnson
e75ac9f497
fixers/xo: support typescript options
2021-01-22 09:23:53 -06:00
Charles B Johnson
289f808ccd
fixers/xo: refactor to handlers
2021-01-22 09:23:53 -06:00
Charles B Johnson
4a6136c27e
fixers/xo: add tests
2021-01-22 09:23:53 -06:00
Charles B Johnson
6bfcb9cdff
linters/xo: consolidate xo linters
2021-01-22 09:23:53 -06:00
Horacio Sanson and Horacio Sanson
014b00d4d7
Add yamllint and prettier to openapi.
...
This commit enables yamllint and prettier on openapi files.
2021-01-22 23:17:38 +09:00
Horacio Sanson and GitHub
7e3d2930d8
Merge pull request #3261 from toastal/dhall
...
Enhanced Dhall fixer support
2021-01-20 21:06:03 +09:00
Horacio Sanson and GitHub
8de0e7b9ba
Merge pull request #3430 from mbrunnen/mbn/fix-macros-include-c-flag
...
Add -imacros to C flags
2021-01-20 20:42:18 +09:00
Horacio Sanson and GitHub
783cf4ab82
Merge pull request #3362 from daliusd/tsserver_hints
...
Show tsserver hints/suggestions in Ale.
2021-01-20 20:40:44 +09:00
Horacio Sanson and GitHub
bbac230008
Merge pull request #3234 from hsanson/3233-enable-ktlint-fixer-for-kotlin-files
...
Enable ktlint fixer for kotlin files.
2021-01-15 22:26:56 +09:00
w0rp and GitHub
6fbdec8587
Merge pull request #3535 from dense-analysis/revert-3358-master
...
Revert "Improves fixer performance for large buffers"
2021-01-14 20:41:55 +00:00
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
Horacio Sanson and GitHub
97ce2423b0
Merge pull request #3494 from YorickPeterse/master
...
Add linter for Inko
2021-01-13 23:54:06 +09:00
Horacio Sanson and GitHub
7b187af10a
Merge pull request #3482 from liskin/lsp-popup-menu-fix
...
codefix: Fix LSP MenuCallback invocation (E119, not enough args)
2021-01-13 23:41:34 +09:00
Horacio Sanson and GitHub
aabca5b0ac
Merge pull request #3398 from ecly/update-python-find-root
...
Update `ale#python#FindProjectRootIni` with poetry.lock and pyproject.toml
2021-01-13 22:07:02 +09:00
Horacio Sanson and GitHub
12d28ca34f
Merge pull request #3399 from StephenWithPH/suggest-scalafmt-for-sbt
...
suggest scalafmt for sbt
2021-01-13 14:00:10 +09:00
Horacio Sanson and GitHub
49f8aa4703
Revert "Improves fixer performance for large buffers"
2021-01-12 17:49:30 +09:00
Horacio Sanson and GitHub
54dd731cf1
Merge pull request #3386 from ivorpeles/master
...
Make isort fixer recognize auto_pipenv flag
2021-01-08 10:43:34 +09:00
Yorick Peterse
8375ee2766
Add linter for Inko
...
This adds a linter for Inko (https://inko-lang.org/ ). The linter makes
use of Inko's own compiler, and a newly introduced --check flag to only
check for errors; instead of also compiling source code.
2020-12-23 16:50:45 +01:00
toastal
9c7e1fe4dd
merging master
2020-12-21 10:26:09 +07:00
Tomas Janousek
6d7cff9c00
codefix: Fix LSP MenuCallback invocation (E119, not enough args)
2020-12-05 15:29:25 +00:00
Horacio Sanson and GitHub
03b6978a27
Merge pull request #3381 from andreypopp/gofmt-stding-stdout
...
Use stdin/stdout to communicate with gofmt
2020-11-29 18:59:48 +09:00
Lyz
12eb8d1523
fix: correct suggested filetype for yamlfix
2020-11-26 12:42:50 +01:00
Ivor Peles
ce3d891bed
Use better string comparison operators in isort fixer
2020-11-25 17:57:40 -05:00
Ivor Peles
340e966055
Fix comparison operator
2020-11-25 17:34:03 -05:00
Lyz
c69d696e1b
feat: add yamlfix fixer
2020-11-25 01:21:53 +01:00
Ivor Peles
d27a3f453c
Ignore executable check when executable is pipenv
2020-11-21 19:24:20 -05:00
Ivor Peles
ae86d10e48
Set default value for python_isort_auto_pipenv
2020-11-21 19:24:20 -05:00
Ivor Peles
373ffa0f31
Use pipenv isort executable when python_auto_pipenv = 1
2020-11-21 19:24:19 -05:00
5458a1b291
Fix 3103 - add shellcheck shell directive detection. ( #3216 )
...
* Fix 3103 - add shellcheck shell directive detection.
Searches for shellcheck shell directive to detect dialects for scripts
that do not have shebang.
* Change order of detection of shellcheck dialect
In a situation where the filetype can be wrong (example: something.sh
which is written in bash dialect) and has no hash-bang (since it is
meant to be sourced) then the override specified within the script will
be ignored.
It probably is the most right thing to do if the script author has added
a specific directive; it should trump everything else.
Co-authored-by: Horacio Sanson <horacio@allm.inc >
Co-authored-by: Dino Korah <dino.korah@redmatter.com >
2020-11-21 20:49:31 +00:00
w0rp and GitHub
b4550f361b
Merge pull request #3409 from lyz-code/feat/add-autoimport-support
...
feat: add autoimport fixer
2020-11-21 20:45:51 +00:00
w0rp and GitHub
96428425fe
Merge pull request #2903 from davidtwco/ormolu-fixer
...
Add ormolu fixer.
2020-11-21 20:25:13 +00:00
Dale Jung and GitHub
2873be2d6a
Add php phpcbf options ( #3383 )
...
* Taken from phpcs. add add_php_phpcbf_options #3382
* Updated docs for php_phpcbf_options #3382
* Added tests #3382
2020-11-21 20:19:02 +00:00
w0rp
a139599d39
Close #2727 - Add a hover-only setting for balloons
2020-11-21 20:12:09 +00:00
w0rp
06e7f2195e
Fix #3332 - Modify everything for rename/actions
...
ALE now just modifies every open buffer for rename and actions, and sets
up a one-time use BufEnter event to reload buffers that are changed so
you don't have to think about what to do with changed buffers.
2020-11-21 19:00:53 +00:00
w0rp and GitHub
b8aaff2cf7
Merge pull request #3358 from lukaswozniak/master
...
Improves fixer performance for large buffers
2020-11-21 16:40:29 +00:00
w0rp and GitHub
edd96f4414
Merge pull request #3354 from rphln/collapse-whitespaces
...
Collapse spaces and lines in the completion menu.
2020-11-21 16:16:08 +00:00
w0rp and GitHub
c10e807492
Fix handling of ranges at file end. ( #3344 )
2020-11-21 16:03:39 +00:00
zandr and GitHub
e5d16caebe
Add luafmt fixer ( #3289 )
2020-11-21 15:59:50 +00:00
w0rp and GitHub
9f2215d69b
Merge pull request #3435 from myobie/yarn-berry
...
For linters/tserver and handlers/eslint: look for node packages in .yarn/sdks as well
2020-11-21 15:33:55 +00:00
Dalius Dobravolskas
81d16823a7
Settings to control suggestions.
2020-11-21 15:49:42 +02:00
Dalius Dobravolskas and Dalius Dobravolskas
2ab46d4b8e
Show tsserver hints/suggestions in Ale.
2020-11-21 15:49:41 +02:00
Dalius Dobravolskas and w0rp
d0b5909fd8
#3442 Fix code fix clangd issue
2020-11-21 01:27:27 +00:00
w0rp
7c04ee5c20
Close #1466 - Add GVIM refactor menu support
...
Code actions and ALERename now appear in the right click context menu
for GVim by default.
2020-11-21 01:18:27 +00:00
Nathan Herald
b74827de99
Look for node packages in .yarn/sdks as well
2020-11-17 17:12:04 +01:00