aboutsummaryrefslogtreecommitdiff
path: root/nvim/lua/kickstart/plugins/lint.lua
diff options
context:
space:
mode:
authorNicholas Moore <nicholasvmoore@gmail.com>2025-10-29 07:40:12 -0500
committerGitHub <noreply@github.com>2025-10-29 07:40:12 -0500
commit3a3666a08b47121fb84b7b5f8d9514941be34760 (patch)
treed0e0b9ad67cd89478776e8d0118037f780504ac4 /nvim/lua/kickstart/plugins/lint.lua
parent45f088bb6c322ec6b9cfe2b07ff3230b20114280 (diff)
parent24019c96aac25f5bc71f464a175905bed500d14e (diff)
Merge pull request #1 from nicholasvmoore/feature/refactoring
Feature/refactoring
Diffstat (limited to 'nvim/lua/kickstart/plugins/lint.lua')
-rw-r--r--nvim/lua/kickstart/plugins/lint.lua60
1 files changed, 0 insertions, 60 deletions
diff --git a/nvim/lua/kickstart/plugins/lint.lua b/nvim/lua/kickstart/plugins/lint.lua
deleted file mode 100644
index 907c6bf..0000000
--- a/nvim/lua/kickstart/plugins/lint.lua
+++ /dev/null
@@ -1,60 +0,0 @@
-return {
-
- { -- Linting
- 'mfussenegger/nvim-lint',
- event = { 'BufReadPre', 'BufNewFile' },
- config = function()
- local lint = require 'lint'
- lint.linters_by_ft = {
- markdown = { 'markdownlint' },
- }
-
- -- To allow other plugins to add linters to require('lint').linters_by_ft,
- -- instead set linters_by_ft like this:
- -- lint.linters_by_ft = lint.linters_by_ft or {}
- -- lint.linters_by_ft['markdown'] = { 'markdownlint' }
- --
- -- However, note that this will enable a set of default linters,
- -- which will cause errors unless these tools are available:
- -- {
- -- clojure = { "clj-kondo" },
- -- dockerfile = { "hadolint" },
- -- inko = { "inko" },
- -- janet = { "janet" },
- -- json = { "jsonlint" },
- -- markdown = { "vale" },
- -- rst = { "vale" },
- -- ruby = { "ruby" },
- -- terraform = { "tflint" },
- -- text = { "vale" }
- -- }
- --
- -- You can disable the default linters by setting their filetypes to nil:
- -- lint.linters_by_ft['clojure'] = nil
- -- lint.linters_by_ft['dockerfile'] = nil
- -- lint.linters_by_ft['inko'] = nil
- -- lint.linters_by_ft['janet'] = nil
- -- lint.linters_by_ft['json'] = nil
- -- lint.linters_by_ft['markdown'] = nil
- -- lint.linters_by_ft['rst'] = nil
- -- lint.linters_by_ft['ruby'] = nil
- -- lint.linters_by_ft['terraform'] = nil
- -- lint.linters_by_ft['text'] = nil
-
- -- Create autocommand which carries out the actual linting
- -- on the specified events.
- local lint_augroup = vim.api.nvim_create_augroup('lint', { clear = true })
- vim.api.nvim_create_autocmd({ 'BufEnter', 'BufWritePost', 'InsertLeave' }, {
- group = lint_augroup,
- callback = function()
- -- Only run the linter in buffers that you can modify in order to
- -- avoid superfluous noise, notably within the handy LSP pop-ups that
- -- describe the hovered symbol using Markdown.
- if vim.opt_local.modifiable:get() then
- lint.try_lint()
- end
- end,
- })
- end,
- },
-}