Nvim :help
pages, generated
from source
using the tree-sitter-vimdoc parser.
vim.g.editorconfig = false
let g:editorconfig = v:false
). It can also be disabled
per-buffer by setting the b:editorconfig buffer-local variable to false
.
false
.
.editorconfig
file, and (optionally) a table containing all of the other
properties and their values (useful for properties which depend on other
properties). The value is always a string and must be coerced if necessary.
Example:require('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
"utf-8"
, "utf-8-bom"
, "latin1"
, "utf-16be"
, or
"utf-16le"
. Sets the 'fileencoding' and 'bomb' options.
"lf"
, "crlf"
, or "cr"
. These correspond to setting
'fileformat' to "unix", "dos", or "mac", respectively.
"true"
or "false"
to ensure the file always has a trailing newline as
its last byte. Sets the 'fixendofline' and 'endofline' options.
.editorconfig
files in parent
directories. This property must be at the top-level of the .editorconfig
file (i.e. it must not be within a glob section).
"true"
, trailing whitespace is automatically removed when the
buffer is written.