add linters, enable plugins

pull/837/head
Kerry Staley 1 year ago
parent 4985d586af
commit df1ccefc7a

@ -668,6 +668,7 @@ require('lazy').setup({
ruby = { { 'rubocop' } },
go = { { 'gofmt' } },
},
formatters = {},
},
},
@ -877,9 +878,9 @@ require('lazy').setup({
-- 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).
--
-- require 'kickstart.plugins.debug',
-- require 'kickstart.plugins.indent_line',
-- require 'kickstart.plugins.lint',
require 'kickstart.plugins.debug',
require 'kickstart.plugins.indent_line',
require 'kickstart.plugins.lint',
-- 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.

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

Loading…
Cancel
Save