mirror of
https://github.com/nix-community/nixvim.git
synced 2025-06-26 02:38:38 +02:00
editorconfig: Migrate to builtin plugin (#335)
This commit is contained in:
parent
3797094d19
commit
121566a267
4 changed files with 65 additions and 65 deletions
|
@ -1,18 +0,0 @@
|
|||
{
|
||||
# TODO: convert to disable test in neovim 0.9
|
||||
empty = {
|
||||
plugins.editorconfig.enable = true;
|
||||
};
|
||||
|
||||
example = {
|
||||
plugins.editorconfig.enable = true;
|
||||
plugins.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
|
||||
'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue