Compare commits
2 commits
cfe57543c6
...
d8187ee775
Author | SHA1 | Date | |
---|---|---|---|
d8187ee775 | |||
2a5121372f |
2 changed files with 10 additions and 2 deletions
|
@ -1 +1,8 @@
|
|||
vim.keymap.set('n', 'gq', ":%!jq '.'<CR>", { noremap=true, silent=true, buffer=0 })
|
||||
|
||||
vim.api.nvim_create_autocmd({ "BufWritePost" }, {
|
||||
buffer = 0,
|
||||
callback = function()
|
||||
require("lint").try_lint()
|
||||
end,
|
||||
})
|
||||
|
|
|
@ -8,12 +8,13 @@ nvim_lint.linters_by_ft = {
|
|||
fish = { 'fish' },
|
||||
go = { 'revive' },
|
||||
haskell = { 'hlint' },
|
||||
javascript = { 'eslint_d' },
|
||||
javascript = { 'eslint' },
|
||||
json = { 'jq' },
|
||||
lua = { 'luacheck' },
|
||||
markdown = { 'vale' },
|
||||
sh = { 'shellcheck' },
|
||||
systemd = { 'systemd-analyze' },
|
||||
typescript = { 'eslint_d' },
|
||||
typescript = { 'eslint' },
|
||||
yaml = { 'yamllint' },
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue