mirror of
https://github.com/neovim/neovim.git
synced 2026-01-05 12:57:45 +00:00
docs: misc, editorconfig
fix https://github.com/neovim/neovim/issues/36858
This commit is contained in:
@@ -1,9 +1,24 @@
|
||||
--- @brief
|
||||
--- Nvim supports EditorConfig. When a file is opened, after running |ftplugin|s
|
||||
--- and |FileType| autocommands, Nvim searches all parent directories of that file
|
||||
--- for ".editorconfig" files, parses them, and applies any properties that match
|
||||
--- the opened file. Think of it like 'modeline' for an entire (recursive)
|
||||
--- directory. For more information see https://editorconfig.org/.
|
||||
--- EditorConfig is like 'modeline' for an entire (recursive) directory. When a file is opened,
|
||||
--- after running |ftplugin|s and |FileType| autocommands, the EditorConfig feature searches all
|
||||
--- parent directories of that file for `.editorconfig` files, parses them, and applies their
|
||||
--- properties. For more information see https://editorconfig.org/.
|
||||
---
|
||||
--- Example `.editorconfig` file:
|
||||
--- ```ini
|
||||
--- root = true
|
||||
---
|
||||
--- [*]
|
||||
--- charset = utf-8
|
||||
--- end_of_line = lf
|
||||
--- indent_size = 4
|
||||
--- indent_style = space
|
||||
--- max_line_length = 42
|
||||
--- trim_trailing_whitespace = true
|
||||
---
|
||||
--- [*.{diff,md}]
|
||||
--- trim_trailing_whitespace = false
|
||||
--- ```
|
||||
|
||||
--- @brief [g:editorconfig]() [b:editorconfig]()
|
||||
---
|
||||
|
||||
Reference in New Issue
Block a user