mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-23 09:18:38 +02:00
38 lines
798 B
Nix
38 lines
798 B
Nix
|
{
|
||
|
empty = {
|
||
|
plugins.efmls-configs.enable = true;
|
||
|
};
|
||
|
|
||
|
example = {
|
||
|
extraConfigLuaPre = ''
|
||
|
local efm_fs = require('efmls-configs.fs')
|
||
|
local djlint_fmt = {
|
||
|
formatCommand = string.format('%s --reformat ''${INPUT} -', efm_fs.executable('djlint')),
|
||
|
formatStdin = true,
|
||
|
}
|
||
|
'';
|
||
|
|
||
|
plugins.efmls-configs = {
|
||
|
enable = true;
|
||
|
|
||
|
setup = {
|
||
|
# Setup for all languages
|
||
|
all = {
|
||
|
linter = "vale";
|
||
|
};
|
||
|
|
||
|
# Only accepts known tools, or raw strings
|
||
|
html = {
|
||
|
formatter = ["prettier" {__raw = "djlint_fmt";}];
|
||
|
};
|
||
|
|
||
|
# Unknown filetype, accepts anything
|
||
|
htmldjango = {
|
||
|
formatter = [{__raw = "djlint_fmt";}];
|
||
|
linter = "djlint";
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
};
|
||
|
}
|