nvim: Enable linting for fish
This commit is contained in:
parent
3e9ed93517
commit
306bd4b597
2 changed files with 3 additions and 0 deletions
|
@ -1 +1,3 @@
|
|||
nnoremap <buffer> gq :silent :%!fish_indent %<CR>:w<CR>
|
||||
|
||||
autocmd! BufWritePost <buffer> lua require('lint').try_lint()
|
||||
|
|
|
@ -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' },
|
||||
|
|
Loading…
Reference in a new issue