feat: add custom formatter and linter for beancount
This commit is contained in:
@@ -29,8 +29,8 @@ return {
|
||||
|
||||
-- Web / Frontend
|
||||
html = { 'prettier' },
|
||||
css = { 'prettier', 'stylelint' },
|
||||
javascript = { 'prettier', 'eslint_d' },
|
||||
css = { 'prettier' },
|
||||
javascript = { 'prettier' },
|
||||
php = { 'phpcbf' },
|
||||
|
||||
-- YAML
|
||||
@@ -44,6 +44,9 @@ return {
|
||||
|
||||
-- SQL
|
||||
sql = { 'sqlfluff' },
|
||||
|
||||
-- Beancount
|
||||
beancount = { 'bean_format' },
|
||||
},
|
||||
format_injected = true,
|
||||
default_format_opts = {
|
||||
@@ -53,6 +56,13 @@ return {
|
||||
lsp_format = 'fallback',
|
||||
timeout_ms = 1000,
|
||||
},
|
||||
formatters = {
|
||||
bean_format = {
|
||||
command = 'bean-format',
|
||||
args = { '-' },
|
||||
stdin = true,
|
||||
},
|
||||
},
|
||||
},
|
||||
|
||||
config = function(_, opts)
|
||||
|
||||
Reference in New Issue
Block a user