nvim: add .editorconfig to project root detection

This commit is contained in:
tastytea 2022-08-17 00:12:42 +02:00
parent 647237145c
commit e618f9511e
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM

View File

@ -94,7 +94,7 @@ function M.get_project_root()
local path = vim.api.nvim_buf_get_name(0)
local root_markers = {
'.git', '.hg', '.svn', '.bzr', '_darcs',
'.projectile', '.clang-format', '.luarc.json'
'.projectile', '.clang-format', '.luarc.json', '.editorconfig'
}
local sep = '/'