From ad32182cc4a03c8826a64e9ced68046c575fdb7d Mon Sep 17 00:00:00 2001 From: Micah Halter Date: Wed, 14 Aug 2024 08:21:41 -0400 Subject: fix(taplo): simplify root detection now that single file mode is supported (#3267) --- lua/lspconfig/server_configurations/taplo.lua | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/taplo.lua b/lua/lspconfig/server_configurations/taplo.lua index e1a93530..06d6125c 100644 --- a/lua/lspconfig/server_configurations/taplo.lua +++ b/lua/lspconfig/server_configurations/taplo.lua @@ -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 = { -- cgit v1.2.3-70-g09d2