feat: more stuf
This commit is contained in:
parent
24b6fdb455
commit
828352781f
14 changed files with 84 additions and 39 deletions
|
|
@ -10,18 +10,26 @@ return {
|
|||
lsp_as_default_formatter = true,
|
||||
}
|
||||
end,
|
||||
keys = {
|
||||
{ 'gF', '<cmd>Guard fmt<CR>', mode = { 'n', 'x' } },
|
||||
},
|
||||
config = function()
|
||||
local ft = require('guard.filetype')
|
||||
|
||||
ft('python'):fmt({
|
||||
cmd = 'isort',
|
||||
args = { '--profile', 'black', '-' },
|
||||
stdin = true,
|
||||
}):append('black'):lint('mypy')
|
||||
ft('python')
|
||||
:fmt({
|
||||
cmd = 'isort',
|
||||
args = { '--profile', 'black', '-' },
|
||||
stdin = true,
|
||||
})
|
||||
:append('black')
|
||||
:lint('mypy')
|
||||
|
||||
ft('lua'):fmt('stylua'):lint('selene')
|
||||
|
||||
ft('javascript,javascriptreact,typescript,typescriptreact'):fmt('prettierd'):lint('eslint_d')
|
||||
ft('javascript,javascriptreact,typescript,typescriptreact')
|
||||
:fmt('prettierd')
|
||||
:lint('eslint_d')
|
||||
ft('css,graphql,html,json,jsonc,mdx,yaml'):fmt('prettierd')
|
||||
|
||||
ft('sh,bash,zsh'):fmt({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue