Please create an Pull Request if you see any mismatched documentation or typos.
Here is a list of languages that are automatically set and configured when default_config
is set. For information
on how to set default_config
check the docs:
:help diagnosticls-configs-defaults
.
Filetype | Default Linter | Default Formatter |
---|---|---|
CSS/SASS/SCSS/LESS | stylelint |
prettier |
Go | golangci_lint |
|
HTML | stylelint |
prettier |
JavaScript/JSX | eslint |
prettier |
Lua | luacheck |
stylua |
Perl | perlcritic |
perltidy |
PHP | phpcs |
phpcbf |
Python | flake8 |
autopep8 |
Ruby | reek |
|
Swift | swiftlint |
|
TypeScript/TSX | eslint |
prettier |
Vim | vint |
|
YAML | yamllint |
Below are the supported linters and formatters that are configured to run with diagnostic-languageserver. You can access
the table of contents of this document on the left hand corner of the file, in github. Copy the require
code into your
setup()
function (See example code:
:help diagnosticls-configs-setup
).
local stylelint = require 'diagnosticls-configs.linters.stylelint'
local prettier = require 'diagnosticls-configs.formatters.prettier'
local golangci_lint = require 'diagnosticls-configs.linters.golangci_lint'
local revive = require 'diagnosticls-configs.linters.revive'
local gofumpt = require 'diagnosticls-configs.formatters.gofumpt'
local stylelint = require 'diagnosticls-configs.linters.stylelint'
local prettier = require 'diagnosticls-configs.formatters.prettier'
local eslint = require 'diagnosticls-configs.linters.eslint'
local standard = require 'diagnosticls-configs.linters.standard'
local xo = require 'diagnosticls-configs.linters.xo'
local prettier = require 'diagnosticls-configs.formatters.prettier'
local eslint_fmt = require 'diagnosticls-configs.formatters.eslint_fmt'
local eslint_d_fmt = require 'diagnosticls-configs.formatters.eslint_d_fmt'
local prettier_eslint = require 'diagnosticls-configs.formatters.prettier_eslint'
local prettier_standard = require 'diagnosticls-configs.formatters.prettier_standard'
local standard_fmt = require 'diagnosticls-configs.formatters.standard_fmt'
local xo_fmt = require 'diagnosticls-configs.formatters.xo_fmt'
local luacheck = require 'diagnosticls-configs.linters.luacheck'
local lua_format = require 'diagnosticls-configs.formatters.lua_format'
local stylua = require 'diagnosticls-configs.formatters.stylua'
local perlcritic = require 'diagnosticls-configs.linters.perlcritic'
local perltidy = require 'diagnosticls-configs.formatters.perltidy'
local perlimports = require 'diagnosticls-configs.formatters.perlimports'
local phpcs = require 'diagnosticls-configs.linters.phpcs'
local phpstan = require 'diagnosticls-configs.linters.phpstan'
local psalm = require 'diagnosticls-configs.linters.psalm'
local phpcbf = require 'diagnosticls-configs.formatters.phpcbf'
local flake = require 'diagnosticls-configs.linters.flake'
local pylint = require 'diagnosticls-configs.linters.pylint'
local mypy = require 'diagnosticls-configs.linters.mypy'
local autopep8 = require 'diagnosticls-configs.formatters.autopep8'
local black = require 'diagnosticls-configs.formatters.black'
local reek = require 'diagnosticls-configs.linters.reek'
local rubocop = require 'diagnosticls-configs.linters.rubocop'
local swiftlint = require 'diagnosticls-configs.linters.swiftlint'
local swiftformat = require 'diagnosticls-configs.linters.swiftformat'
local swiftformat = require 'diagnosticls-configs.formatters.swiftformat'
local eslint = require 'diagnosticls-configs.linters.eslint'
local ts_standard = require 'diagnosticls-configs.linters.ts_standard'
local xo = require 'diagnosticls-configs.linters.xo'
local prettier = require 'diagnosticls-configs.formatters.prettier'
local eslint_fmt = require 'diagnosticls-configs.formatters.eslint_fmt'
local prettier_eslint = require 'diagnosticls-configs.formatters.prettier_eslint'
local ts_standard_fmt = require 'diagnosticls-configs.formatters.ts_standard_fmt'
local xo_fmt = require 'diagnosticls-configs.formatters.xo_fmt'
local vint = require 'diagnosticls-configs.linters.vint'
local yamllint = require 'diagnosticls-configs.linters.yamllint'