fix(taplo): simplify root detection now that single file mode is supported (#3267)

This commit is contained in:
Micah Halter 2024-08-14 08:21:41 -04:00 committed by GitHub
parent a67bc39aaa
commit ad32182cc4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -4,9 +4,7 @@ return {
default_config = {
cmd = { 'taplo', 'lsp', 'stdio' },
filetypes = { 'toml' },
root_dir = function(fname)
return util.root_pattern '*.toml'(fname) or util.find_git_ancestor(fname)
end,
root_dir = util.find_git_ancestor,
single_file_support = true,
},
docs = {