nvim: Enable linting for fish

This commit is contained in:
Sanchayan Maity 2022-04-25 08:42:33 +05:30
parent 3e9ed93517
commit 306bd4b597
2 changed files with 3 additions and 0 deletions

View File

@ -1 +1,3 @@
nnoremap <buffer> gq :silent :%!fish_indent %<CR>:w<CR>
autocmd! BufWritePost <buffer> lua require('lint').try_lint()

View File

@ -4,6 +4,7 @@ vim.keymap.set('n', '<LocalLeader>l', ':lua require(\'lint\').try_lint()<CR>', {
nvim_lint.linters_by_ft = {
dockerfile = { 'hadolint' },
fish = { 'fish' },
haskell = { 'hlint' },
javascript = { 'eslint' },
lua = { 'luacheck' },