add linter and formatting support
This commit is contained in:
parent
400e7eeb5e
commit
2e76dd1cab
6 changed files with 51 additions and 40 deletions
|
|
@ -1,2 +1 @@
|
|||
require("aleidk.IDE.completion")
|
||||
require("aleidk.IDE.null-ls")
|
||||
|
|
|
|||
|
|
@ -1,38 +0,0 @@
|
|||
-- Linter and formatter configuration
|
||||
|
||||
require("mason-null-ls").setup({
|
||||
handlers = {}, -- this make mason-null-ls to auto setup handlers
|
||||
ensure_installed = {
|
||||
"blade_formatter",
|
||||
"blue",
|
||||
"eslint_d",
|
||||
"fixjson",
|
||||
"gitlint",
|
||||
"intelephense",
|
||||
"markdownlint",
|
||||
"php-cs-fixer",
|
||||
"prettierd",
|
||||
"shellcheck",
|
||||
"shfmt",
|
||||
"sql-formatter",
|
||||
"stylua",
|
||||
"yamlint",
|
||||
},
|
||||
})
|
||||
|
||||
local null_ls = require("null-ls.builtins")
|
||||
|
||||
require("null-ls").setup({
|
||||
sources = {
|
||||
null_ls.formatting.prettierd.with({
|
||||
disabled_filetypes = { "markdown" },
|
||||
}),
|
||||
|
||||
null_ls.formatting.phpcsfixer.with({
|
||||
extra_args = {
|
||||
"--config",
|
||||
"$HOME/.config/php-cs-fixer-conf.php",
|
||||
},
|
||||
}),
|
||||
},
|
||||
})
|
||||
Loading…
Add table
Add a link
Reference in a new issue