diff options
Diffstat (limited to 'lua/core/linter.lua')
-rw-r--r-- | lua/core/linter.lua | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/lua/core/linter.lua b/lua/core/linter.lua deleted file mode 100644 index 676b0cf7..00000000 --- a/lua/core/linter.lua +++ /dev/null @@ -1,33 +0,0 @@ -local M = {} - -M.setup = function() - if O.lint_on_save then - require("lv-utils").define_augroups { - autolint = { - { - "BufWritePost", - "<buffer>", - ":silent lua require('lint').try_lint()", - }, - { - "BufEnter", - "<buffer>", - ":silent lua require('lint').try_lint()", - }, - }, - } - end -end - -local status_ok, _ = pcall(require, "lint") -if not status_ok then - return -end - -if not O.lint_on_save then - vim.cmd [[if exists('#autolint#BufWritePost') - :autocmd! autolint - endif]] -end - -return M |