fix nvim-lint, other fixes
This commit is contained in:
parent
c84e455173
commit
81c6df2323
6 changed files with 23 additions and 24 deletions
|
@ -2,13 +2,13 @@ return {
|
|||
init = function()
|
||||
require('lint').linters_by_ft = {
|
||||
--python = {
|
||||
--'ruff'
|
||||
--'ruff',
|
||||
--'flake8',
|
||||
--'pylint',
|
||||
--'pycodestyle',
|
||||
--'pydocstyle'
|
||||
--},
|
||||
php = { 'phpcs' },
|
||||
php = { 'phpcs', },
|
||||
markdown = { 'markdownlint' }
|
||||
}
|
||||
|
||||
|
@ -26,11 +26,11 @@ return {
|
|||
--'--disable=C0114', -- disable missing module docstring info
|
||||
--}
|
||||
|
||||
--vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
--callback = function()
|
||||
--require("lint").try_lint()
|
||||
--end,
|
||||
--})
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
||||
callback = function()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue