nix-community.nixvim/tests/test-sources/modules/editorconfig.nix

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

18 lines
360 B
Nix
Raw Normal View History

{
disable = {
editorconfig.enable = false;
};
example = {
editorconfig.enable = true;
editorconfig.properties.foo = ''
function(bufnr, val, opts)
if opts.charset and opts.charset ~= "utf-8" then
error("foo can only be set when charset is utf-8", 0)
end
vim.b[bufnr].foo = val
end
'';
};
}