From 98f8a77819670ce6012216e01885c135a6d3a289 Mon Sep 17 00:00:00 2001 From: Christian Chiarulli Date: Sat, 24 Jul 2021 21:17:11 -0400 Subject: New contract (#1080) Changes to the global config object O is now lvim user_plugins is now plugins user_autocommands is now autocommands No more lang specific plugins Null-ls has replaced both formatter.nvim and nvim-lint --- lua/core/linter.lua | 33 --------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 lua/core/linter.lua (limited to 'lua/core/linter.lua') 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", - "", - ":silent lua require('lint').try_lint()", - }, - { - "BufEnter", - "", - ":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 -- cgit v1.2.3