mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-21 16:39:00 +02:00
17 lines
360 B
Nix
17 lines
360 B
Nix
{
|
|
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
|
|
'';
|
|
};
|
|
}
|