From 2a94573f54c69a9af7536586ab2c03eb88bda5e7 Mon Sep 17 00:00:00 2001 From: Gustaf Rydholm Date: Fri, 5 Jan 2024 01:50:20 +0100 Subject: Refactor --- fnl/plugins/editor/nvim-lint.fnl | 30 ------------------------------ 1 file changed, 30 deletions(-) delete mode 100644 fnl/plugins/editor/nvim-lint.fnl (limited to 'fnl/plugins/editor/nvim-lint.fnl') diff --git a/fnl/plugins/editor/nvim-lint.fnl b/fnl/plugins/editor/nvim-lint.fnl deleted file mode 100644 index 2ea01fa..0000000 --- a/fnl/plugins/editor/nvim-lint.fnl +++ /dev/null @@ -1,30 +0,0 @@ -;; Linting - -(lambda callback [] - (let [lint (require :lint)] - (lint.try_lint))) - -(fn init [] - (let [lint-augroup (vim.api.nvim_create_augroup :lint {:clear true})] - (vim.api.nvim_create_autocmd [:BufEnter - :BufWritePost - :InsertLeave - :TextChangedI] - {:group lint-augroup : callback}))) - -(fn config [] - (let [lint (require :lint)] - (set lint.linters_by_ft {:* [:codespell :write_good] - :dockerfile [:hadolint] - :fennel [:fennel] - :gitcommit [:gitlint :codespell] - :haskell [:hlint] - :json [:jsonlint] - :lua [:selene] - :python [:ruff] - :sh [:shellcheck] - :sql [:sqlfluff] - :yaml [:yamllint] - :zsh [:zsh]}))) - -{1 :mfussenegger/nvim-lint : init : config :event [:BufReadPost :BufNewFile]} -- cgit v1.2.3-70-g09d2