Nvim :help 页面,生成 于 源文件,使用 tree-sitter-vimdoc 解析器。
vim.g.editorconfig = false
false,则 Nvim 会将应用的属性存储在其中。.editorconfig 文件中属性的值,以及(可选)包含所有其他属性及其值的表(对于依赖于其他属性的属性很有用)。该值始终为字符串,如果需要,必须进行强制转换。示例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" 或 "utf-16le" 之一。设置 'fileencoding' 和 'bomb' 选项。"lf"、"crlf" 或 "cr" 之一。它们分别对应于将 'fileformat' 设置为 "unix"、"dos" 或 "mac"。"true" 或 "false",以确保文件始终在最后字节处包含尾部换行符。设置 'fixendofline' 和 'endofline' 选项。.editorconfig 文件。此属性必须位于 .editorconfig 文件的顶层(即,它不能位于 glob 部分内)。