nvim: after/plugin/nvim-lint: Enable clang-tidy

This commit is contained in:
Sanchayan Maity 2022-12-20 20:42:39 +05:30
parent 9a188237a2
commit 09f609b26a
Signed by: sanchayanmaity
GPG key ID: 6F6A0609C12038F3

View file

@ -3,6 +3,7 @@ local nvim_lint = require 'lint'
vim.keymap.set('n', '<Leader>l', ':lua require(\'lint\').try_lint()<CR>', { noremap = true, unique = true }) vim.keymap.set('n', '<Leader>l', ':lua require(\'lint\').try_lint()<CR>', { noremap = true, unique = true })
nvim_lint.linters_by_ft = { nvim_lint.linters_by_ft = {
c = { 'clangtidy' },
dockerfile = { 'hadolint' }, dockerfile = { 'hadolint' },
fish = { 'fish' }, fish = { 'fish' },
go = { 'revive' }, go = { 'revive' },