add linters, enable plugins

This commit is contained in:
Kerry Staley 2024-03-21 10:34:26 -07:00
parent 4985d586af
commit df1ccefc7a
2 changed files with 8 additions and 3 deletions

View File

@ -668,6 +668,7 @@ require('lazy').setup({
ruby = { { 'rubocop' } }, ruby = { { 'rubocop' } },
go = { { 'gofmt' } }, go = { { 'gofmt' } },
}, },
formatters = {},
}, },
}, },
@ -877,9 +878,9 @@ require('lazy').setup({
-- Here are some example plugins that I've included in the Kickstart repository. -- Here are some example plugins that I've included in the Kickstart repository.
-- Uncomment any of the lines below to enable them (you will need to restart nvim). -- Uncomment any of the lines below to enable them (you will need to restart nvim).
-- --
-- require 'kickstart.plugins.debug', require 'kickstart.plugins.debug',
-- require 'kickstart.plugins.indent_line', require 'kickstart.plugins.indent_line',
-- require 'kickstart.plugins.lint', require 'kickstart.plugins.lint',
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua` -- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
-- This is the easiest way to modularize your config. -- This is the easiest way to modularize your config.

View File

@ -7,6 +7,10 @@ return {
local lint = require 'lint' local lint = require 'lint'
lint.linters_by_ft = { lint.linters_by_ft = {
markdown = { 'markdownlint' }, markdown = { 'markdownlint' },
ruby = { 'rubocop' },
terraform = { 'tlint' },
json = { 'jsonlint' },
javascript = { 'eslint_d' },
} }
-- To allow other plugins to add linters to require('lint').linters_by_ft, -- To allow other plugins to add linters to require('lint').linters_by_ft,